Skip to content

Commit dd11c21

Browse files
committed
Fix windows build
1 parent eb023b0 commit dd11c21

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

include/jlcxx/jlcxx_config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
// Apple Clang doesn't really support ranges fully until __cpp_lib_ranges==202207L (AppleClang 16)
2727
#if defined(__cpp_lib_ranges) && !defined(JLCXX_FORCE_RANGES_OFF)
28-
# if defined(__clang__) && defined(__apple_build_version__)
28+
# if (defined(__clang__) && defined(__apple_build_version__)) || defined _MSC_VER
2929
# if __cpp_lib_ranges >= 202207L
3030
# define JLCXX_HAS_RANGES
3131
# endif

src/jlcxx.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,4 +457,16 @@ JLCXX_API void cxxwrap_init(const std::string& envpath)
457457
}
458458
}
459459

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+
460472
}

0 commit comments

Comments
 (0)