Where are std::sinf( float ) etc.
Howard Hinnant
hhinnant@apple.com
Thu Dec 29 21:20:00 GMT 2005
On Dec 29, 2005, at 4:07 PM, Gabriel Dos Reis wrote:
> Howard Hinnant <hhinnant@apple.com> writes:
>
> [...]
>
> | > As to overloads for std::cosf (note the suffix), I find the
> | > justificaton for them as "C99 compatibility" as dubious.
> |
> | Interesting.
>
> cos() is "overloaded" in C99 through <tgmath.h>; not cosf. If the
> motivation for a C++ library to add overloads for cosf is
> compatibility then the motivation better finds a different, more
> convincing, excuse.
>
> -- Gaby
My mistake again. I thought Ed was simply asking for:
float std::cosf( float );
which is required by C99. Having that signature (not any overloads
of it) in the name of "C99 compatibility" does not seem dubious to
me. I'm not sure where we started discussing overloading cosf, nor
with what signature.
-Howard
More information about the Libstdc++
mailing list