What all does a compiler add to an empty class declaration?

Posted by cambr on Stack Overflow See other posts from Stack Overflow or by cambr
Published on 2010-04-17T20:18:19Z Indexed on 2010/04/17 20:23 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

Suppose, I write

class A { };

compiler should provide (as and when needed)

  1. a constructor
  2. a destructor
  3. a copy constructor
  4. = operator

Is this all what the compiler provides? Are there any additions or deletions to this list?

© Stack Overflow or respective owner

Related posts about c++

Related posts about class