News for hackers. Stuff that matters.
Re:An Introduction to Reflection in C++ by MaulingMonkey on Saturday April 15, 2017 @07:37PM (#14123458)
> If you implement a move as a swap (as in the examples I saw when I first heard of move constructors back when it was called c++0x) you don't need an empty state.

You do to e.g. default construct the temporary you'll be swapping with in the first place. Problematic if you're trying to construct e.g. a reference-like type with no null state.

There are no comments on this comment yet.