|
Boost Users : |
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2007-12-10 09:26:56
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
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