This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Add C++ special math functions to C++17


On 11 March 2016 at 16:31, Ed Smith-Rowland <3dw4rd@verizon.net> wrote:
> On 03/11/2016 10:55 AM, Jonathan Wakely wrote:
>>
>> The change approved in Jacksonville was to only add the special
>> functions to <cmath> and not <math.h>
>>
> That's easy.
> OK, since they changed that and the macro and made it nonconditional I
> should also drop the old-style macros __WANT_MATH_CANNEVERREMEMBER__ and the
> old-style version macro.
> So, in other words, we're *not* actually supporting TR29124 (that's fine by
> me).
> We can tweak the web pages.
> People on C++11, C++14 can use tr1.

I think we can keep 29124 support for pre-C++17, and for that case
<math.h> will include the functions (when the ICANNEVERREMEMBEREITHER
macro is defined).

> Did they keep the Cisms like:
>
>   float
>   foobarf(float x);
>
>   double
>   foobar(double x);
>
>   long double
>   foobarl(long double x);

Yes, I think so.

Let's do this after gcc6 though.


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