Yeah, I don't suppose there is a way?
(It's totally legitimate! Honest!)
[But it's probably a design flaw.]
I'm playing with some colors.
There are foreground colors.
And there are background colors.
The actual colors are the same. It's just really nice to be able to have the compiler switch based upon the foreground-ness or background-ness of the color for you.
Oh, and there's a 'both' class.
And now I'd like to be able to say
1 2 3 4
|
bgtextcolor bg;
fgtextcolor fg = fgtextcolor::light_red;
...
bg = fg;
|
But wait! Assignment operators are apparently too special to be declared outside of a class.
(I used to wonder why, but I didn't ever see what difference it would make. Until now. So... any way around it?)
Thanks for reading. Again. :o]