POV-Ray : Newsgroups : povray.programming : and another one, possible memory leak : Re: and another one, possible memory leak Server Time
28 Sep 2024 10:59:48 EDT (-0400)
  Re: and another one, possible memory leak  
From: Daniel Hulme
Date: 29 Oct 2004 09:37:05
Message: <20041029143705.4959935e@dh286.pem.cam.ac.uk>
> If there is no copy constructor and no operator=, it does a memberwise
> copy. Same as memcpy(New,Old,sizeof(struct)).
Exactly. There is no copy constructor nor operator=, so the References
field gets copied along with everything else.

Daniel

-- 
A most peculiar man    With the windows closed      And Mrs Reardon says
He died last Saturday  So he'd never wake up  He has a brother somewhere
He turned on the gas   To his silent world   Who should be notified soon
And he went to sleep   And his tiny room    .oO( http://sad.istic.org/ )


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.