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: PR libstdc++/49813 revisited: constexpr on <cmath> functions (and builtins)


On Tue, 2 Sep 2014, Paolo Carlini wrote:

On 09/02/2014 11:59 AM, Jonathan Wakely wrote:
We should either remove _GLIBCXX_CONSTEXPR from <cmath> entirely or
make it conditional on __STRICT_ANSI__.
The second option seems preferable to me, also considering that -std=gnu++* is the default. Plus a bit of release notes.

Define _GLIBCXX_GNU_CONSTEXPR? I am just a bit worried about defining many variants like 17GNU14 for functions that are constexpr with gnu++14 (require extended constexpr) and c++17 (standardized later), but I guess their number wouldn't be so bad, and as long as the naming convention is readable...

--
Marc Glisse


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