From 29ffcc50981fd50dd2ab1a69f8a262c4b7c27ad4 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Tue, 7 Nov 2017 13:53:30 -0800 Subject: [PATCH] Workaround a bug in MSVC Summary: It was broken, now it is fixed. https://developercommunity.visualstudio.com/content/problem/145407/incorrect-c3520-within-noexcept-expression-in-alia.html Reviewed By: yfeldblum Differential Revision: D6254219 fbshipit-source-id: a03961db97d7ac211103655229c1ea703405826a --- folly/functional/Invoke.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/folly/functional/Invoke.h b/folly/functional/Invoke.h index 2eab3ff6..71eabb5e 100644 --- a/folly/functional/Invoke.h +++ b/folly/functional/Invoke.h @@ -227,9 +227,10 @@ struct is_nothrow_invocable_r using result_ = \ decltype(::std::declval().membername(::std::declval()...)); \ template \ - using nothrow_ = ::std::integral_constant< \ - bool, \ - noexcept(::std::declval().membername(::std::declval()...))>; \ + struct nothrow_ : std::integral_constant< \ + bool, \ + noexcept(::std::declval().membername( \ + ::std::declval()...))> {}; \ \ template \ struct invoke_result_ {}; \ -- 2.34.1