From dd11c219fa837e1cb855e417e4eb95f1910c01b7 Mon Sep 17 00:00:00 2001 From: Bart Janssens Date: Sun, 8 Dec 2024 23:20:06 +0100 Subject: [PATCH] Fix windows build --- include/jlcxx/jlcxx_config.hpp | 2 +- src/jlcxx.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/jlcxx/jlcxx_config.hpp b/include/jlcxx/jlcxx_config.hpp index 2398656..84754d8 100644 --- a/include/jlcxx/jlcxx_config.hpp +++ b/include/jlcxx/jlcxx_config.hpp @@ -25,7 +25,7 @@ // Apple Clang doesn't really support ranges fully until __cpp_lib_ranges==202207L (AppleClang 16) #if defined(__cpp_lib_ranges) && !defined(JLCXX_FORCE_RANGES_OFF) -# if defined(__clang__) && defined(__apple_build_version__) +# if (defined(__clang__) && defined(__apple_build_version__)) || defined _MSC_VER # if __cpp_lib_ranges >= 202207L # define JLCXX_HAS_RANGES # endif diff --git a/src/jlcxx.cpp b/src/jlcxx.cpp index f52ee86..24c1247 100644 --- a/src/jlcxx.cpp +++ b/src/jlcxx.cpp @@ -457,4 +457,16 @@ JLCXX_API void cxxwrap_init(const std::string& envpath) } } +#ifdef _MSC_VER + +namespace detail +{ + +template class BasicArg; +template class BasicArg; + +} + +#endif + }