|
![](/i/fill.gif) |
Daniel Hulme wrote:
> Yes, it did both of these:
> New = Create_Interior();
>
> *New = *Old;
>
> It then goes on to do some deep copying. Now, I may be mistaken, but I
> was under the impression that *x = *y did a shallow copy. Since the
> reference count is an int and not an int*, that means the reference
> count is copied, over the existing count of 1.
If there is no copy constructor and no operator=, it does a memberwise
copy. Same as memcpy(New,Old,sizeof(struct)).
--
~Mike
Post a reply to this message
|
![](/i/fill.gif) |