Summary: windows is also missing __throw_bad_alloc
Test Plan: fbconfig -r folly && fbmake runtests
Reviewed By: delong.j@fb.com
FB internal diff:
D1318921
throw std::out_of_range(msg);
}
+#if defined(_MSC_VER)
+void __throw_bad_alloc() {
+ throw std::bad_alloc();
+}
+#endif
+
FOLLY_NAMESPACE_STD_END
FOLLY_NORETURN void __throw_logic_error(const char* msg);
FOLLY_NORETURN void __throw_out_of_range(const char* msg);
+#ifdef _MSC_VER
+FOLLY_NORETURN void __throw_bad_alloc();
+#endif
+
FOLLY_NAMESPACE_STD_END
#endif