Summary:
__throw* functions exist in master branch but are not included in both
libc++ 3.9.0 and 3.9.1. Expect them to appear in next LLVM release
(which is 4.0).
Closes https://github.com/facebook/folly/pull/536
Reviewed By: yfeldblum, Orvid
Differential Revision:
D4377002
Pulled By: smeenai
fbshipit-source-id:
5dd311ca3ec43955f29dd1197fd8fbeb9564a7f6
FOLLY_NAMESPACE_STD_BEGIN
-#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3900) && \
+#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 4000) && \
!defined(FOLLY_SKIP_LIBCPP_4000_THROW_BACKPORTS)
void __throw_length_error(const char* msg) {
throw std::length_error(msg);
#include <folly/Portability.h>
FOLLY_NAMESPACE_STD_BEGIN
-#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3900) && \
+#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 4000) && \
!defined(FOLLY_SKIP_LIBCPP_4000_THROW_BACKPORTS)
[[noreturn]] void __throw_length_error(const char* msg);
[[noreturn]] void __throw_logic_error(const char* msg);