]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Enable assertions in constexpr string_view members [PR 71960]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Sep 2020 14:49:26 +0000 (15:49 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 11 Sep 2020 10:52:28 +0000 (11:52 +0100)
commit877cdcc714704e242f477580d81397cc1d0fc90e
tree0e993e4794f9c006340b3000fb784ff5c58c080f
parent1fcb8430cfdbae0cf5abc1898d763bd4a3069d04
libstdc++: Enable assertions in constexpr string_view members [PR 71960]

There is no longer any reason we can't just use __glibcxx_assert in
constexpr functions. As long as the condition is true, there will be no
call to std::__replacement_assert that would make the function
ineligible for constant evaluation.

PR libstdc++/71960
* include/experimental/string_view (basic_string_view):
Enable debug assertions.
* include/std/string_view (basic_string_view):
Likewise.
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/std/string_view
This page took 0.056648 seconds and 6 git commands to generate.