Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2007-12-07 18:32:13


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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net