|
Re: Aaaargh!
10/02/16 12:36 PM
|
|
|
Anything containing double underscore is out, as those are reserved. Might be better to add static methods to rgb_t to return the colours rather than the macro stuff.
Code:
class rgb_t { ... static constexpr rgb_t black() { return rgb_t(0, 0, 0); } static constexpr rgb_t white() { return rgb_t(255, 255, 255); } ... };
Not much can go wrong with doing it that way.
|
|