Re: Copy constructor with non const rhs arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux