From 89bea8378ae632b0caa134293f713b927774ab50 Mon Sep 17 00:00:00 2001 From: ankurv Date: Sun, 3 Jan 2021 11:05:32 -0800 Subject: [PATCH] Patch --- src/osgEarth/Threading | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgEarth/Threading b/src/osgEarth/Threading index 9093ca6..0fbd9ce 100644 --- a/src/osgEarth/Threading +++ b/src/osgEarth/Threading @@ -602,7 +602,11 @@ namespace osgEarth { namespace Threading template constexpr auto cpp11invoke(Fn&& f, Args&&... args) noexcept(noexcept(std::forward(f)(std::forward(args)...))) +#if defined(__cpp_lib_is_invocable) && __cpp_lib_is_invocable >= 201703 + -> typename std::invoke_result::type +#else -> typename std::result_of::type +#endif { return std::forward(f)(std::forward(args)...); } -- 2.29.2.windows.3