--- 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:
struct default_alpha { static const float value = 1.0f; };
The above is not legal, of course. Anyone? Thanks.
Not yet. Work has been done to emulate compile-time doubles via MPL, but it's currently sitting in the vault: http://www.boost-consulting.com/vault/ Look inside the Template Metaprogramming folder for 'mpl_math.zip'. No docs yet, you'll have to rely on the example programs to get yourself acquainted. Cromwell D. Enage ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ