We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e6967 commit 1af8bc8Copy full SHA for 1af8bc8
src/common/cpp_compat.hpp
@@ -30,13 +30,13 @@ namespace cpp_compat {
30
// contains a compatibility layer for such C++ features.
31
32
// Older than C++17.
33
-#if defined(__cplusplus) && __cplusplus < 201703L
+#if defined(__cplusplus) && __cplusplus < 201703L || defined(_MSVC_LANG) && _MSVC_LANG < 201703L
34
inline int uncaught_exceptions() {
35
return (int)std::uncaught_exception();
36
}
37
38
template <class F, class... ArgTypes>
39
-using invoke_result = std::result_of<F(ArgTypes...)>;
+using invoke_result = typename std::result_of<F(ArgTypes...)>;
40
#else
41
42
0 commit comments