Implement LWG 2806, Base class of bad_optional_access.
commit5f3975ecdb8569e54869b98d778557b2e085a1a5
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2017 18:03:30 +0000 (13 18:03 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2017 18:03:30 +0000 (13 18:03 +0000)
tree9ca4f80704b5d6e802b54f9c218ecd50f7c613bf
parentf30f43f6141a78527218165be53536d431ad5a7e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246103 138bc75d-0d04-0410-961f-82ee72b054a4
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