In the paper P0135R0 there is an example:
struct NonMoveable {
NonMoveable(int);
NonMoveable(NonMoveable&) = delete;
void NonMoveable(NonMoveable&) = delete;
std::array<int, 1024> arr;
};
NonMoveable make() {
return NonMoveable(42); // ok, directly constructs returned object
}
auto nm = make(); // ok, directly constructs 'nm'
This confused me:
void NonMoveable(NonMoveable&) = delete;
What is it? How constructor can be void?
UPD. Someone linked probable answer - No! This question is totally different.