$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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