I have a class that includes an enum
:
class appearance{
// ... stuff ...
enum color {BLUE, RED, GREEN};
};
I would like to attach part of the namespace (with using
) so that I can refer to the value of the BLUE
simply as BLUE
, rather than appearance::BLUE
. At the same time, I would like to keep the enum
within the class{}
, since I think that is most natural. I have tried various combinations of namespace
and using
, but to no avail.
Any suggestions ???