D
Dave
Any thoughs on why a member subobject may be const but an inherited
subobject may not? i.e. the following is not possible:
class derived: public const base
{
....
};
but the following is:
class derived
{
....
const base b;
};
The only restriction for the second case is that constructors must
initialize base in its initializer list...
Of course, this also all applies to volatile as well...
subobject may not? i.e. the following is not possible:
class derived: public const base
{
....
};
but the following is:
class derived
{
....
const base b;
};
The only restriction for the second case is that constructors must
initialize base in its initializer list...
Of course, this also all applies to volatile as well...