libstdc++: Do not define constexpr assertions for C++11
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 15:39:58 +0000 (15:39 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 15:39:58 +0000 (15:39 +0000)
commitf072d1021e3e80539afe58ba0019fafa9a0bb7a6
treee268748a8722c1c1cdae640783debbbb56d268c7
parent362303298ac4c1f93bda87535df2b726481d54bb
libstdc++: Do not define constexpr assertions for C++11

There's no point even checking is_constant_evaluated() in C++11 mode,
because the 'if' statement used for the assertion wouldn't be valid in a
C++11 constexpr function anyway.

libstdc++-v3/ChangeLog:

* include/bits/c++config (__glibcxx_assert_1): Define as empty
for C++11.
libstdc++-v3/include/bits/c++config