* });
*/
+namespace detail {
+
template <typename... Exceptions>
class try_and_catch;
fn();
}
};
+}
+
+template <typename... Exceptions, typename F>
+exception_wrapper try_and_catch(F&& fn) {
+ return detail::try_and_catch<Exceptions...>(std::forward<F>(fn));
+} // detail
} // folly