libstdc++: Use if-constexpr in std::__try_use_facet [PR113099]
commit9f3eb93e72703f6ea30aa27d0b6fc6db62cb4a04
authorJonathan Wakely <jwakely@redhat.com>
Wed, 3 Jan 2024 12:23:32 +0000 (3 12:23 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 5 Jan 2024 10:23:35 +0000 (5 10:23 +0000)
tree520d81b7d4b815728235b4a7bd4c96231d69a2e3
parentb8faf1fca42a9b987fec0992ca5d63995b2640b3
libstdc++: Use if-constexpr in std::__try_use_facet [PR113099]

As noted in the PR, we can use if-constexpr for the explicit
instantantiation definitions that are compiled with -std=gnu++11. We
just need to disable the -Wc++17-extensions diagnostics.

libstdc++-v3/ChangeLog:

PR libstdc++/113099
* include/bits/locale_classes.tcc (__try_use_facet): Use
if-constexpr for C++11 and up.
libstdc++-v3/include/bits/locale_classes.tcc