From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2001-10-24 13:26:36
----- Original Message -----
From: Peter Dimov <pdimov_at_[hidden]>
Sent: Wednesday, October 24, 2001 3:17 PM
Subject: Re: [boost] Math constants for naive and gurus? - which constants
do you want?
> I don't really see what's wrong with the simple
> namespace math
> double const pi = 3.14159265358...;
It doesn't fit well into generic programming:
void foo ( Numeric angle )
if ( angle == pi ) // A narrowing conversion will occur here, if, for
instance, Numeric is 'long double' or 'MyReallyBigFloat'
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk