If libc++ has not declared bad_array_length, then declare it here just so that it gets into the binary.

llvm-svn: 194208
This commit is contained in:
Howard Hinnant
2013-11-07 17:16:37 +00:00
parent 88960d151e
commit 66da53e0da

View File

@@ -232,6 +232,19 @@ bad_array_new_length::what() const _NOEXCEPT
// bad_array_length
#ifndef _LIBCPP_BAD_ARRAY_LENGTH_DEFINED
class _LIBCPP_EXCEPTION_ABI bad_array_length
: public bad_alloc
{
public:
bad_array_length() _NOEXCEPT;
virtual ~bad_array_length() _NOEXCEPT;
virtual const char* what() const _NOEXCEPT;
};
#endif // _LIBCPP_BAD_ARRAY_LENGTH_DEFINED
bad_array_length::bad_array_length() _NOEXCEPT
{
}