From: Andrew Krieger Date: Mon, 23 Oct 2017 16:36:28 +0000 (-0700) Subject: Gate std::invoke_result et. al. to appropriate MSVC versions. X-Git-Tag: v2017.10.30.00~30 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6d012519103c4cb27901fcfe7932d57c34d7ad8e;p=folly.git 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 --- 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 {