|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-10-23 18:14:02
> Many thanks for your work on this. Looks promising, but may
> be worth also producing the plain const double/float/long double files
> as well for the time being at least?
>
> Paul
The plain const was actually less efficient for some platforms.
The only problems I see with the template function approach is
the extra typing:
v = pi
is certainly easier than
v = constant<pi_tag,double>
but it is not amenable to more precise implementations.
How about a compromise:
v = pi<double>()
and so on for all the other constants? I think this can be
made to work with even the most brain-dead compilers.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk