Don’t shoot yourself in the foot with the C++ move constructor

Move semantics can be very useful to transfer ownership of resources, but as many other C++ features, it s one more double edge sword that can harm yourself in new and interesting ways if you don t read the small print. For instance, if object moving involves super and subclasses, you have to keep an extra eye Continue reading Don t shoot yourself in the foot with the C++ move constructor