I have a class that includes enum:
class appearance{
enum color {BLUE, RED, GREEN};
};
I would like to add part of the namespace (c using) so that I can refer to the value BLUEsimply as BLUE, rather than appearance::BLUE. At the same time, I would like to keep enumwithin class{}, as I believe that this is most natural. I tried various combinations namespaceand using, but to no avail.
Any suggestions???
source
share