What all does a compiler add to an empty class declaration?
- by cambr
Suppose, I write
class A { };
compiler should provide (as and when needed)
a constructor
a destructor
a copy constructor
= operator
Is this all what the compiler provides? Are there any additions or deletions to this list?