D
Dave
Hello all,
It appears that 3.9/10 and 9/4 taken together define POD. The definition
does not seem to exclude base-class subobjects that are non-POD (though it
does exclude data members that are non-POD). So...
class base // non-POD due to str
{
public:
string str;
};
class derived: public base // POD?????
{
public:
int a;
};
According to my interpretation, derived would be POD. This sure doesn't
seem right though. What am I missing?
Thanks,
Dave
It appears that 3.9/10 and 9/4 taken together define POD. The definition
does not seem to exclude base-class subobjects that are non-POD (though it
does exclude data members that are non-POD). So...
class base // non-POD due to str
{
public:
string str;
};
class derived: public base // POD?????
{
public:
int a;
};
According to my interpretation, derived would be POD. This sure doesn't
seem right though. What am I missing?
Thanks,
Dave