C++ Logo


Advanced search

[SG10] Fwd: Is __cpp_lib_constexpr_char_traits "official"?

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 15 Jun 2020 11:45:00 +0100
Please see the 2018 thread below. I think this macro should be added to
SD-6 and the IS, and I think it should also be updated to 201811L for the
P1032R1 "Misc constexpr bits" changes that made the remaining char_traits
members constexpr. All the other bits of P1032R1 have their own macro now
instead of __cpp_lib_constexpr_misc, but not the char_traits bits.

Libstdc++ has been defining __cpp_lib_constexpr_char_traits to 201611 for
years (and I'm about to update the value to 201811 in the relevant

Any objection before I open an LWG issue?

---------- Forwarded message ---------
From: Richard Smith <richard_at_[hidden]>
Date: Fri, 15 Jun 2018 at 19:41
Subject: Re: [SG10] Is __cpp_lib_constexpr_char_traits "official"?
To: Jonathan Wakely <cxx_at_[hidden]>
Cc: features_at_[hidden] (features_at_[hidden]) <

It seems reasonable to me, at least.

On 15 June 2018 at 17:30, Jonathan Wakely <cxx_at_[hidden]> wrote:

> I don't see it in P0096R5, although
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0426r1.html
> recommended it.
> It seems to be useful to know whether you can use
> char_traits<char>::length() in a constexpr function, or whether you need to
> write your own.
> _______________________________________________
> Features mailing list
> Features_at_[hidden]
> http://www.open-std.org/mailman/listinfo/features

Received on 2020-06-15 05:48:22