r270117 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Apr 3 09:47:00 GMT 2019

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
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.


More information about the Libstdc++-cvs mailing list