This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Where are std::sinf( float ) etc.
Paolo Carlini <pcarlini@suse.de> writes:
| Howard Hinnant wrote:
| > Many pardons if my inquiry ruffled any feathers. That was not my intent.
| No problem at all! Only, the historical side of your way of casting
| the issue seemed plain *weird* to our old v3 eyes...
same here.
| > The first C99 compatibility paper to appear before the LWG is dated
| > March 2002. The first TR1 draft was published in Oct. '03. The
| > technology to disambiguate the math functions using "restricted
| > templates" didn't exist prior to early 2002. I personally argued in
| > committee that we include the "fortran overloading rules" as part of
| > the C99 compatibility package in the 2003 time frame.
| Thanks for that info. Allowing myself to spend a little more time on
| (marginally) interesting historical reconstructions, the logs say that
| __enable_if appeared in std_cmath.h in May '03, when Gaby fixed
| libstdc++/3181.
Indeed. I relunctantly put/welcome the enable-if trickery mainly to
fix the ambiguity problem caused purely by C++98 (no C99 compatibility
involved). The trickery was communicated to me at the Santa Cruz
meeting (October 2002) by Doug Gregor and Jaakko Järvi from the paper
they co-authored with Howard. But, at that time, we already had
"solved" the C99 math stuff (see the ChangeLogs and the archive.)
-- Gaby