diff options
Diffstat (limited to 'libcxx/src/optional.cpp')
-rw-r--r-- | libcxx/src/optional.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libcxx/src/optional.cpp b/libcxx/src/optional.cpp index fc91152..6ba63f2 100644 --- a/libcxx/src/optional.cpp +++ b/libcxx/src/optional.cpp @@ -10,17 +10,13 @@ #include <optional> #include <stdexcept> -namespace std -{ +namespace std { bad_optional_access::~bad_optional_access() noexcept = default; -const char* bad_optional_access::what() const noexcept { - return "bad_optional_access"; -} - -} // std +const char* bad_optional_access::what() const noexcept { return "bad_optional_access"; } +} // namespace std #include <experimental/__config> @@ -28,9 +24,7 @@ const char* bad_optional_access::what() const noexcept { // Even though it no longer exists in a header file _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL -class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS bad_optional_access - : public std::logic_error -{ +class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS bad_optional_access : public std::logic_error { public: bad_optional_access() : std::logic_error("Bad optional Access") {} |