commit | df59bf20d85384f56395f573f294ddd45327347a | [log] [tgz] |
---|---|---|
author | Jonathan Wakely <jwakely@redhat.com> | Tue Apr 15 14:01:55 2025 +0100 |
committer | Jonathan Wakely <redi@gcc.gnu.org> | Tue Apr 15 17:34:34 2025 +0100 |
tree | da1c336812b837c7e693d7253602bf58d1d420f7 | |
parent | edb4867412895100b3addc525bc0dba0ea90c7f9 [diff] |
libstdc++: Do not declare namespace ranges in <numeric> unconditionally Move namespace ranges inside the feature test macro guard, because 'ranges' is not a reserved name before C++20. libstdc++-v3/ChangeLog: * include/std/numeric (ranges): Only declare namespace for C++23 and later. (ranges::iota_result): Fix indentation. * testsuite/17_intro/names.cc: Check ranges is not used as an identifier before C++20.