File tree 2 files changed +8
-2
lines changed
cxxsupp/libcxxmsvc/include
tbb/include/oneapi/tbb/detail
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -908,7 +908,8 @@ typedef unsigned int char32_t;
908
908
# define _LIBCPP_CONSTEVAL consteval
909
909
#endif
910
910
911
- #if _LIBCPP_STD_VER <= 17 || !defined(__cpp_concepts) || __cpp_concepts < 201907L
911
+ // Even modern versions of MSVC toolkit have issues compiling libc++'s concepts-related code
912
+ #if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_COMPILER_MSVC) || !defined(__cpp_concepts) || __cpp_concepts < 201907L
912
913
#define _LIBCPP_HAS_NO_CONCEPTS
913
914
#endif
914
915
Original file line number Diff line number Diff line change 243
243
#elif _MSC_VER
244
244
#define __TBB_CPP14_VARIABLE_TEMPLATES_PRESENT (_MSC_FULL_VER >= 190023918 && (!__INTEL_COMPILER || __INTEL_COMPILER >= 1700 ))
245
245
#define __TBB_CPP17_DEDUCTION_GUIDES_PRESENT (_MSC_VER >= 1914 && __TBB_LANG >= 201703L && (!__INTEL_COMPILER || __INTEL_COMPILER > 2021 ))
246
- #define __TBB_CPP20_CONCEPTS_PRESENT (_MSC_VER >= 1923 && __TBB_LANG >= 202002L ) // TODO: INTEL_COMPILER?
246
+ #if !defined(__cpp_lib_concepts)
247
+ // TBB's concepts use STL's concepts
248
+ #define __TBB_CPP20_CONCEPTS_PRESENT 0
249
+ #else
250
+ #define __TBB_CPP20_CONCEPTS_PRESENT (_MSC_VER >= 1923 && __TBB_LANG >= 202002L ) // TODO: INTEL_COMPILER?
251
+ #endif
247
252
#else
248
253
#define __TBB_CPP14_VARIABLE_TEMPLATES_PRESENT (__TBB_LANG >= 201402L )
249
254
#define __TBB_CPP17_DEDUCTION_GUIDES_PRESENT (__TBB_LANG >= 201703L )
You can’t perform that action at this time.
0 commit comments