[libcxx] r194207 - Tell libc++abi whether or not libc++ has declared bad_array_length.
Howard Hinnant
hhinnant at apple.com
Thu Nov 7 09:15:51 PST 2013
Author: hhinnant
Date: Thu Nov 7 11:15:51 2013
New Revision: 194207
URL: http://llvm.org/viewvc/llvm-project?rev=194207&view=rev
Log:
Tell libc++abi whether or not libc++ has declared bad_array_length.
Modified:
libcxx/trunk/include/new
Modified: libcxx/trunk/include/new
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/new?rev=194207&r1=194206&r2=194207&view=diff
==============================================================================
--- libcxx/trunk/include/new (original)
+++ libcxx/trunk/include/new Thu Nov 7 11:15:51 2013
@@ -94,6 +94,7 @@ public:
};
#if defined(_LIBCPP_BUILDING_NEW) || (_LIBCPP_STD_VER > 11)
+
class _LIBCPP_EXCEPTION_ABI bad_array_length
: public bad_alloc
{
@@ -102,7 +103,10 @@ public:
virtual ~bad_array_length() _NOEXCEPT;
virtual const char* what() const _NOEXCEPT;
};
-#endif
+
+#define _LIBCPP_BAD_ARRAY_LENGTH_DEFINED
+
+#endif // defined(_LIBCPP_BUILDING_NEW) || (_LIBCPP_STD_VER > 11)
_LIBCPP_FUNC_VIS void __throw_bad_alloc(); // not in C++ spec
More information about the cfe-commits
mailing list