File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,18 @@ include(CheckCXXSourceCompiles)
1212function (beman_iterator_check_deducing_this result_var)
1313 check_cxx_source_compiles( "
1414// clang-specific check due to http://github.com/llvm/llvm-project/issues/113174
15- #if defined(__cpp_explicit_this_parameter) || (defined(__clang__) && __has_extension(cxx_explicit_this_parameter))
15+ // MSVC-specific check due to https://developercommunity.visualstudio.com/t/10107077
16+ #if defined(__cpp_explicit_this_parameter)
1617#else
17- #error No deducing this support
18+ #if defined(_MSC_VER) && (_MSC_VER >= 1932)
19+ #elif defined(__clang__)
20+ #if __has_extension(cxx_explicit_this_parameter)
21+ #else
22+ #error No deducing this support
23+ #endif
24+ #else
25+ #error No deducing this support
26+ #endif
1827#endif
1928int main(){}
2029" HAVE_DEDUCING_THIS )
You can’t perform that action at this time.
0 commit comments