diff --git a/include/clipp.h b/include/clipp.h index d7b101e..05c69d4 100644 --- a/include/clipp.h +++ b/include/clipp.h @@ -46,6 +46,11 @@ #include #include +#ifdef _MSVC_LANG +#define CLIPP_CPLUSPLUS _MSVC_LANG +#else +#define CLIPP_CPLUSPLUS __cplusplus +#endif /*************************************************************************//** * @@ -160,7 +165,14 @@ constexpr auto check_is_callable(int) -> decltype( std::declval()(std::declval()...), std::integral_constant::type>::value>{} ); + std::is_same= 201703L + typename std::invoke_result_t +#else + typename std::result_of::type +#endif + >::value>{} ); + template constexpr auto @@ -171,7 +183,13 @@ constexpr auto check_is_callable_without_arg(int) -> decltype( std::declval()(), std::integral_constant::type>::value>{} ); + std::is_same= 201703L + typename std::invoke_result_t +#else + typename std::result_of::type +#endif + >::value>{} ); template constexpr auto