[libcxx] r290845 - Fix use of throw(...) spec with GCC in C++17
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 2 15:27:42 PST 2017
Author: ericwf
Date: Mon Jan 2 17:27:42 2017
New Revision: 290845
URL: http://llvm.org/viewvc/llvm-project?rev=290845&view=rev
Log:
Fix use of throw(...) spec with GCC in C++17
Modified:
libcxx/trunk/include/new
Modified: libcxx/trunk/include/new
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/new?rev=290845&r1=290844&r2=290845&view=diff
==============================================================================
--- libcxx/trunk/include/new (original)
+++ libcxx/trunk/include/new Mon Jan 2 17:27:42 2017
@@ -162,7 +162,7 @@ _LIBCPP_FUNC_VIS new_handler get_new_han
} // std
-#if !__has_feature(cxx_noexcept)
+#if defined(_LIBCPP_CXX03_LANG)
#define _THROW_BAD_ALLOC throw(std::bad_alloc)
#else
#define _THROW_BAD_ALLOC
More information about the cfe-commits
mailing list