¡@

Home 

c++ Programming Glossary: moveafoo

C++11: Move/Copy construction ambiguity?

http://stackoverflow.com/questions/9152798/c11-move-copy-construction-ambiguity

If so how do you disambiguate their usage For example Foo MoveAFoo Foo f return f Is the above a copy A move How do I know c c.. note As an example if NRVO can be done it's like this void MoveAFoo Foo f new f Foo Foo myfoo pretend this isn't default constructed.. new f Foo Foo myfoo pretend this isn't default constructed MoveAFoo myfoo If NRVO can't be done but Foo is moveable then your example..