From 6d012519103c4cb27901fcfe7932d57c34d7ad8e Mon Sep 17 00:00:00 2001 From: Andrew Krieger Date: Mon, 23 Oct 2017 09:36:28 -0700 Subject: [PATCH] Gate std::invoke_result et. al. to appropriate MSVC versions. Summary: Only available in >= 2017 15.3, which is 1911+. Reviewed By: aary, Orvid Differential Revision: D6117237 fbshipit-source-id: 255804af5bfd0c743fd225b8a4fddf3cfc9cfeaf --- folly/functional/Invoke.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folly/functional/Invoke.h b/folly/functional/Invoke.h index 5e17a6b6..0924af7a 100644 --- a/folly/functional/Invoke.h +++ b/folly/functional/Invoke.h @@ -61,7 +61,8 @@ constexpr auto invoke(M(C::*d), Args&&... args) #endif -#if __cpp_lib_is_invocable >= 201703 || _MSC_VER +// Only available in >= MSVC 2017 15.3 +#if __cpp_lib_is_invocable >= 201703 || _MSC_VER >= 1911 namespace folly { -- 2.34.1