[cfe-dev] [libcxx/test] Puzzling floating point behaviour

Marc Glisse marc.glisse at inria.fr
Sat Dec 10 11:57:22 PST 2011


On Sat, 10 Dec 2011, Howard Hinnant wrote:

> In <math.h> you have:
>
> double exp(double);
> double sin(double);
> double cos(double);
>
> In <cmath> you *additionally* have:
>
> namespace std
> {
> float exp(float);
> double exp(double);
> long double exp(long double);
>
> float sin(float);
> double sin(double);
> long double sin(long double);
>
> float cos(float);
> double cos(double);
> long double cos(long double);
> }

We do agree that this is illegal, even in C++11, right?

-- 
Marc Glisse



More information about the cfe-dev mailing list