base enum class inheritance
Posted
by Sasha
on Stack Overflow
See other posts from Stack Overflow
or by Sasha
Published on 2009-03-13T21:03:03Z
Indexed on
2010/04/08
4:03 UTC
Read the original article
Hit count: 355
Is there a pattern where I can inherit enum from another enum in C++??
something like that:
enum eBase
{
one=1, two, three
};
enum eDerived: public Base
{
four=4, five, six
};
© Stack Overflow or respective owner