Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Dec 8, 2024
1 parent e6da692 commit cdc0cf7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/jlcxx/jlcxx_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions src/jlcxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,4 +457,16 @@ JLCXX_API void cxxwrap_init(const std::string& envpath)
}
}

#ifdef _MSC_VER

namespace detail
{

template class BasicArg<false>;
template class BasicArg<true>;

}

#endif

}

0 comments on commit cdc0cf7

Please sign in to comment.