diff --git a/3rd_party/include/opentracing/variant/variant.hpp b/3rd_party/include/opentracing/variant/variant.hpp index 7b6bb47..eb2c619 100644 --- a/3rd_party/include/opentracing/variant/variant.hpp +++ b/3rd_party/include/opentracing/variant/variant.hpp @@ -167,7 +167,11 @@ struct enable_if_type template struct result_of_unary_visit { - using type = typename std::result_of::type; +#ifdef __cpp_lib_is_invocable + using type = typename std::invoke_result::type; +#else + using type = typename std::result_of::type; +#endif }; template @@ -179,7 +183,11 @@ struct result_of_unary_visit struct result_of_binary_visit { - using type = typename std::result_of::type; +#ifdef __cpp_lib_is_invocable + using type = typename std::invoke_result::type; +#else + using type = typename std::result_of::type; +#endif }; template