M
Mark
is there a way to make so i dont have to call the following with the
extra ::val portion?
template<int r, int g, int b>
struct RGB {
static const int val = 65536 * r + 256 * g + b;
};
ie RGB<50,100,150> instead of RGB<50,100,150>::val
extra ::val portion?
template<int r, int g, int b>
struct RGB {
static const int val = 65536 * r + 256 * g + b;
};
ie RGB<50,100,150> instead of RGB<50,100,150>::val