[libcxx] r189949 - Evgeniy Stepanov: Add noexcept to ~bad_optional_access() to silence warning during build.
Howard Hinnant
hhinnant at apple.com
Wed Sep 4 08:21:08 PDT 2013
Author: hhinnant
Date: Wed Sep 4 10:21:08 2013
New Revision: 189949
URL: http://llvm.org/viewvc/llvm-project?rev=189949&view=rev
Log:
Evgeniy Stepanov: Add noexcept to ~bad_optional_access() to silence warning during build.
Modified:
libcxx/trunk/src/optional.cpp
Modified: libcxx/trunk/src/optional.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/optional.cpp?rev=189949&r1=189948&r2=189949&view=diff
==============================================================================
--- libcxx/trunk/src/optional.cpp (original)
+++ libcxx/trunk/src/optional.cpp Wed Sep 4 10:21:08 2013
@@ -14,11 +14,11 @@ namespace std // purposefully not using
#ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
-bad_optional_access::~bad_optional_access() {}
+bad_optional_access::~bad_optional_access() _NOEXCEPT {}
#else
-bad_optional_access::~bad_optional_access() = default;
+bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
#endif
More information about the cfe-commits
mailing list