Skip to content

Commit

Permalink
Fix compilation against Julia 1.11
Browse files Browse the repository at this point in the history
Issue #135
  • Loading branch information
barche committed Oct 5, 2023
1 parent c28f293 commit 0a1249a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/jlcxx/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ template<typename... TypesT> struct julia_type_factory<std::tuple<TypesT...>, Tu
jl_datatype_t* result = nullptr;
JL_GC_PUSH1(&params);
params = jl_svec(sizeof...(TypesT), jlcxx::julia_type<TypesT>()...);
#if (JULIA_VERSION_MAJOR * 100 + JULIA_VERSION_MINOR) >= 111
result = (jl_datatype_t*) jl_apply_tuple_type(params,1);
#else
result = (jl_datatype_t*) jl_apply_tuple_type(params);
#endif
JL_GC_POP();
return result;
}
Expand Down

0 comments on commit 0a1249a

Please sign in to comment.