10 Dec
2007
10 Dec
'07
2:26 p.m.
Robert Dailey wrote:
Is there a way I can define constant floats within class scope like you can with integral values? I was hoping boost could help in this area. For example:
How do you intend to use the value? The following meets your criteria of class scope definition:
struct default_alpha { static const float value = 1.0f;
static float value(){ return 1.0f; }
};
The above is not legal, of course. Anyone? Thanks.
Jeff Flinn