File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 23
23
#define __JLCXX_STR (x ) __JLCXX_STR_HELPER(x)
24
24
#define JLCXX_VERSION_STRING __JLCXX_STR (JLCXX_VERSION_MAJOR) "." __JLCXX_STR(JLCXX_VERSION_MINOR) "." __JLCXX_STR(JLCXX_VERSION_PATCH)
25
25
26
- #if defined(__has_include) && !defined(__FreeBSD__) && !defined(JLCXX_FORCE_RANGES_OFF)
27
- # if __has_include (<ranges>)
26
+ // Apple Clang doesn't really support ranges fully until __cpp_lib_ranges==202207L (AppleClang 16)
27
+ #if defined(__cpp_lib_ranges) && !defined(JLCXX_FORCE_RANGES_OFF)
28
+ # if (defined(__clang__) && defined(__apple_build_version__)) || defined _MSC_VER
29
+ # if __cpp_lib_ranges >= 202207L
30
+ # define JLCXX_HAS_RANGES
31
+ # endif
32
+ # elif __cpp_lib_ranges >= 201911L
28
33
# define JLCXX_HAS_RANGES
29
34
# endif
30
35
#endif
Original file line number Diff line number Diff line change @@ -457,4 +457,16 @@ JLCXX_API void cxxwrap_init(const std::string& envpath)
457
457
}
458
458
}
459
459
460
+ #ifdef _MSC_VER
461
+
462
+ namespace detail
463
+ {
464
+
465
+ template class BasicArg <false >;
466
+ template class BasicArg <true >;
467
+
468
+ }
469
+
470
+ #endif
471
+
460
472
}
You can’t perform that action at this time.
0 commit comments