Why is this code trying to call the copy constructor?

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.

Leave a Comment