What is the definition of the default move constructor? I can't think of anything sensible. Maybe a swap on ptr members and copy on values/reference member?
C++ Move Semantics – What is Default Move Construct?
c++c++11move-semantics
c++c++11move-semantics
What is the definition of the default move constructor? I can't think of anything sensible. Maybe a swap on ptr members and copy on values/reference member?
Best Answer
That's what the standard says (12.8/15):
For pointers and fundamental types moving is the same as copying.