If you are using Visual Studio 2010 or 2012, be advised: the compiler does not automatically generate move constructors for you. That wasn’t implemented. So you need to write them yourself.
More Related Contents:
- Conditions for automatic generation of default/copy/move ctor and copy/move assignment operator?
- std::thread pass by reference calls copy constructor
- Why user-defined move-constructor disables the implicit copy-constructor?
- Copy constructor is not inherited
- Are move constructors produced automatically?
- Can we return objects having a deleted/private copy/move constructor by value from a function?
- Should a move constructor take a const or non-const rvalue reference?
- C++11 rvalue reference calling copy constructor too
- When Does Move Constructor get called?
- Move out element of std priority_queue in C++11
- Uniform initialization fails to copy when object has no data members
- Legality of COW std::string implementation in C++11
- Static Data Member Initialization
- What does the standard library guarantee about self move assignment?
- Calling a function for each variadic template argument and an array
- How std::function works
- Can lambda functions be templated?
- Why do we copy then move?
- Disambiguate overloaded member function pointer being passed as template parameter
- Are notes and examples in the core language specification of the C++ Standard non-normative?
- GNU C++ how to check when -std=c++0x is in effect?
- Clang doesn’t see basic headers
- Convert between string, u16string & u32string
- Explicit copy constructor
- Has the new C++11 member initialization feature at declaration made initialization lists obsolete?
- What happens if ‘throw’ fails to allocate memory for exception object?
- What is the purpose of a declaration like int (x); or int (x) = 10;
- std::thread error (thread not member of std)
- Memory alignment : how to use alignof / alignas?
- C++ copy-construct construct-and-assign question