mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-25 04:56:13 +08:00
Fix use of throw(...) spec with GCC in C++17
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -162,7 +162,7 @@ _LIBCPP_FUNC_VIS new_handler get_new_handler() _NOEXCEPT;
|
||||
|
||||
} // std
|
||||
|
||||
#if !__has_feature(cxx_noexcept)
|
||||
#if defined(_LIBCPP_CXX03_LANG)
|
||||
#define _THROW_BAD_ALLOC throw(std::bad_alloc)
|
||||
#else
|
||||
#define _THROW_BAD_ALLOC
|
||||
|
||||
Reference in New Issue
Block a user