Copy constructor with non const rhs arg

Eljay Love-Jensen eljay@adobe.com
Wed May 12 16:15:00 GMT 2004


Hi Paul,

How about pass-by-value instead of pass-by-reference?

After all, an auto_ptr as a parameter should always be 
pass-by-value.  That's the semantic of pass-by-value for auto_ptr:  a 
transfer of ownership.

--Eljay



More information about the Gcc-help mailing list