diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-04-03 10:47:51 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-04-03 10:47:51 +0100 |
commit | 59e36c85e7e627feb458f2b8c43859d9422f1522 (patch) | |
tree | c9e555e153c6ca34b885ee8aafe25593ef8321d3 /libcpp/files.c | |
parent | 0cb78ef4bcd216413199f9f27eed0ea0a56dd8da (diff) | |
download | gcc-59e36c85e7e627feb458f2b8c43859d9422f1522.zip gcc-59e36c85e7e627feb458f2b8c43859d9422f1522.tar.gz gcc-59e36c85e7e627feb458f2b8c43859d9422f1522.tar.bz2 |
PR libstdc++/85184 remove debug assertions from std::variant
The __glibcxx_assert macro should be used to check preconditions that
users must meet, not to check postconditions that the implementation
must meet. We have tests to verify std::variant meets its
postconditions, users shouldn't pay for those checks at runtime.
PR libstdc++/85184
* include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
Remove assertions.
(variant::emplace<_Tp>): Remove result of emplace<N> directly.
From-SVN: r270117
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions