Implement LWG 2806, Base class of bad_optional_access.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 13 Mar 2017 18:03:30 +0000 (20:03 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 13 Mar 2017 18:03:30 +0000 (20:03 +0200)
commitfd231ad75a03bea9e7ac61c57f806740abddcab2
tree9ca4f80704b5d6e802b54f9c218ecd50f7c613bf
parentdce15db61bc8c2dc7a7e1f901903fa966077fa3e
Implement LWG 2806, Base class of bad_optional_access.

* include/std/optional (bad_optional_access):
Derive from std::exception.
(bad_optional_access::bad_optional_access): Adjust.
(bad_optional_access::what): New.
(__throw_bad_optional_access(const char*)):
Remove the parameter and adjust calls.
* testsuite/20_util/optional/cons/value_neg.cc: Adjust.
* testsuite/20_util/optional/typedefs.cc: Likewise.

From-SVN: r246103
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/cons/value_neg.cc
libstdc++-v3/testsuite/20_util/optional/typedefs.cc