Van Snyder wrote:
>
[snip, interesting question about what real compilers actually do]
> Presumably, the compiler
> would be expected to "deep copy" instead of "shallow copy" an anonymous
> temporary variable.
>
I've seen something like this before and never understood it. Could
someone give a brief explanation of "deep" and "shallow" copies. And
maybe explain why one could or couldn't be used in some common cases.
Thanks
Dick Hendrickson
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|