| -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] On Behalf Of Gennaro Prota | Sent: 18 June 2003 15:45 | To: [EMAIL PROTECTED] | 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 _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost