What’s the exact semantics of deleted member functions in C++11?
a = A(); // error C2280 The expression on the right is a temporary which means it will look for operator=(A&&) and sees it is deleted. Hence the error. There is no further search. =delete does not mean “don’t use me, instead use next best one”. It rather means, “don’t use me when you need … Read more