Is there a way to create a base class (for example, boost :: noncopyable ) and inherit it, which will prevent the compiler from generating a default constructor for derived classes if it was not made by the user (developer)?
Example:
class SuperDad { XXX: SuperDad();
And the result:
int main () { Child a;
c ++ inheritance constructor default-constructor
Trollliar
source share