struct X1 {
X1(X1 const&) {}
}
Would the below definitions also prevent from generation of the
default constructor?
struct X2 {
X2(X2 const&) = delete;
};
struct X3 {
X3(X3 const&) = default;
};
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Yes, every user-declared constructor inhibits the generation, no
matter what its definition looks like.
Sebastian