Commit d7bda3ad authored by Elizabeth Smith's avatar Elizabeth Smith Committed by Dave Watson

missing exception

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
parent 278a1f7d
......@@ -32,4 +32,10 @@ void __throw_out_of_range(const char* msg) {
throw std::out_of_range(msg);
}
#if defined(_MSC_VER)
void __throw_bad_alloc() {
throw std::bad_alloc();
}
#endif
FOLLY_NAMESPACE_STD_END
......@@ -25,6 +25,10 @@ FOLLY_NORETURN void __throw_length_error(const char* msg);
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment