From 82e1b57979015eaf3630def3ec1cebeef6bcdafa Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Mon, 28 Nov 2016 21:23:33 -0800 Subject: [PATCH] Use std::terminate rather than throwing in a noexcept function Summary: Because MSVC isn't happy about it and generates a warning with a lot of context. Reviewed By: yfeldblum Differential Revision: D4242688 fbshipit-source-id: b1e26c9e3b58e7bac0e00ab8959358010fa610e8 --- folly/ScopeGuard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/ScopeGuard.h b/folly/ScopeGuard.h index 26531cd8..2c71c5b9 100644 --- a/folly/ScopeGuard.h +++ b/folly/ScopeGuard.h @@ -83,7 +83,7 @@ class ScopeGuardImplBase { function(); } catch (...) { warnAboutToCrash(); - throw; + std::terminate(); } } -- 2.34.1