Must a deleted constructor be private?
They are different only wrt the produced diagnostics. If you make it private, an additional and superfluous access violation is reported: class A { public: A() = default; private: A(const A&) = delete; }; int main() { A a; A a2=a; } results in the following additional output from GCC 4.8: main.cpp: In function ‘int … Read more