PR libstdc++/90246 Improve text of std::variant exceptions and assertions
authorJonathan Wakely <jwakely@redhat.com>
Fri, 17 May 2019 14:36:37 +0000 (15:36 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 17 May 2019 14:36:37 +0000 (15:36 +0100)
commitc43c3af2c5b7340275da609f6bdd2bdc4a787c1c
treec42c58b15c222877e0223a4fd3eb2f1c79dcddbd
parentac781bc88019eae2bb119d550f587ff4c9ff174d
PR libstdc++/90246 Improve text of std::variant exceptions and assertions

PR libstdc++/90246
* include/std/variant (holds_alternative, get, get_if): Improve
static assertion messages.
(bad_variant_access::bad_variant_access()): Change default message.
(__throw_bad_variant_access(bool)): New overload.
(get): Use new overload.
(visit, visit<R>): Improve exception message.

From-SVN: r271326
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant