How may I re-enable the default c'tor if I wrote one of my own?
I know that writing a c'tor will disable the default one
How may I re-enable the default c'tor if I wrote one of my own?
I know that writing a c'tor will disable the default one
You might implement it as default
(or with custom implementation if needed):
struct C
{
explicit C(int) {} // Disable default constructor
C() = default; // re-enable it :)
};