Commit 9715d540 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Remove a legacy guard around an exceptionStr overload

Summary: [Folly] Remove a legacy guard around an `exceptionStr` overload protecting against platforms lacking `std::exception_ptr`.

Reviewed By: mzlee

Differential Revision: D14129260

fbshipit-source-id: 2947c5b00d901ccaf58aefeef51e442121777eba
parent cc7dde63
...@@ -41,10 +41,6 @@ inline fbstring exceptionStr(const std::exception& e) { ...@@ -41,10 +41,6 @@ inline fbstring exceptionStr(const std::exception& e) {
return rv; return rv;
} }
// Empirically, this indicates if the runtime supports
// std::exception_ptr, as not all (arm, for instance) do.
#if defined(__GNUC__) && defined(__GCC_ATOMIC_INT_LOCK_FREE) && \
__GCC_ATOMIC_INT_LOCK_FREE > 1
inline fbstring exceptionStr(std::exception_ptr ep) { inline fbstring exceptionStr(std::exception_ptr ep) {
if (!kHasExceptions) { if (!kHasExceptions) {
return "Exception (catch unavailable)"; return "Exception (catch unavailable)";
...@@ -57,7 +53,6 @@ inline fbstring exceptionStr(std::exception_ptr ep) { ...@@ -57,7 +53,6 @@ inline fbstring exceptionStr(std::exception_ptr ep) {
}, },
[]() -> fbstring { return "<unknown exception>"; }); []() -> fbstring { return "<unknown exception>"; });
} }
#endif
template <typename E> template <typename E>
auto exceptionStr(const E& e) -> typename std:: auto exceptionStr(const E& e) -> typename std::
......
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