https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85184

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Apr  3 09:47:51 2019
New Revision: 270117

URL: https://gcc.gnu.org/viewcvs?rev=270117&root=gcc&view=rev
Log:
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.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/variant

Reply via email to