This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [c++0x] cannot return a constant


On Tue, Nov 30, 2010 at 3:02 PM, Roman Kononov <roman@binarylife.net> wrote:

>>2) define a copy constructor, explicitly-defaulted if you wish.
>
> What if the copy constructor is too expensive and I have to use move
> constructor?

the discussion would be less confused if you identify clearly the
language semantics (as currently present in the C++0x WD) that
g++ gets wrong.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]