
Boost : 
From: Paul A Bristow (boost_at_[hidden])
Date: 20030618 16:27:27
 Original Message
 From: boostbounces_at_[hidden]
 [mailto:boostbounces_at_[hidden]] On Behalf Of Gennaro Prota
 Sent: 18 June 2003 15:45
 To: boost_at_[hidden]
 Subject: [boost] Re: Math Constants Formal Review  accuracy
 is vital too

 > the proposed code uses namespaces
 >to allow selection of the FP size either individually:

 In Daniel's solution static_cast<type>(x) simply "selects"
 the corresponding specialization of x_value. So

 static_cast<float>(pi)

 is fundamentally different from, say,

 double pi = ...;
 static_cast<float>(pi)
Perhaps naively, I find this surprising  but I am not a language guru.
Can you/anyone confirm that this is required by the Standard
 and is in fact what happens when compilers process this?
If it walks like a duck and quacks like a duck ...
Paul
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk