C++ Logo


Advanced search

[SG10] SD-6 gives wrong header for __cpp_lib_to_chars

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 16 Jul 2018 15:34:02 +0100
SD-6 says the __cpp_lib_to_chars macro is defined in <utility>,
because that's where P0067R5 added std::to_chars and std::from_chars.
However, not long after they were moved to their own header,
<charconv>. The feature test macro should be defined in there, not

No implementation shipped with them in <utility> so there's no reason
to say the macro is in that header for implementations conforming to
P0067R5 and in <charconv> for implementations conforming to P0682R1,
we can just fix it to be <charconv>.

The C++ working draft is being amended by https://wg21.link/lwg3137
and SD-6 should be changed too.

Received on 2018-07-16 16:34:15