J
Jamiil
Hey folks!
I have declared an enum type inside a name space
namespace jme{
enum hero_t{zorro, batmant, cat_woman, other};
class MyClass{
private: hero_t my_hero
.....
};
}
But the compiler complain saying:
somefile.hpp:26: error: conflicting declaration 'zorro'
somefile.hpp:26: error: 'jme::zorro' has a previous declaration as
`jme::hero_t
....
and the same error is produced for all the other members of hero_t?
What am I doing wrogn?
TIA
I have declared an enum type inside a name space
namespace jme{
enum hero_t{zorro, batmant, cat_woman, other};
class MyClass{
private: hero_t my_hero
.....
};
}
But the compiler complain saying:
somefile.hpp:26: error: conflicting declaration 'zorro'
somefile.hpp:26: error: 'jme::zorro' has a previous declaration as
`jme::hero_t
....
and the same error is produced for all the other members of hero_t?
What am I doing wrogn?
TIA