Ctor, CopyCtor and const pointers

How Constructor, copy constuctor and overloaded "operator=" handles data members of type

1
2
int* const i;
cost int j;
A compiler will refuse to generate a default constructor or a operator= function for a class that contains constant members (or contains references)

EDIT:
It can generate a default copy constructor though.
Last edited on
Topic archived. No new replies allowed.