R
Rahul
Hi,
Why does the following gives a compilation error
int const * * p1= 0;
int * * p2 = 0;
p1 = p2;
p1 has more const restriction than p2 so increasing const'ness should
always be allowed, there's no harm which p1 could do to the value
pointed to by p2. So why is this an error.
Regards
Why does the following gives a compilation error
int const * * p1= 0;
int * * p2 = 0;
p1 = p2;
p1 has more const restriction than p2 so increasing const'ness should
always be allowed, there's no harm which p1 could do to the value
pointed to by p2. So why is this an error.
Regards