This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where are std::sinf( float ) etc.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]