Orchid Win7 v1 <voi### [at] dev null> wrote:
> On 13/03/2012 17:31, Warp wrote:
> > Warp<war### [at] tag povray org> wrote:
> >> The first problem is: How should the object be copied? There are many
> >> possibilities:
> >
> > If you are wondering which solution the STL data containers use,
> > it's usually just a simple deep-copy whenever the container is copied
> > or assigned.
> Just to be picky: I'm presuming that it's a "deep" copy as far as
> copying the container itself. Presumably what happens to the elements
> depends on what their copy constructor implements. (?)
The container object manages dynamically allocated memory, and such
objects can be copied. Naturally I was referring to what type of copying
they perform in that case.
The elements themselves use whatever copying mechanism they have been
defined to have.
--
- Warp
Post a reply to this message
|