From 91501af5681c47010a336a0566128c5b2d8e11a0 Mon Sep 17 00:00:00 2001 From: Bart Janssens Date: Thu, 5 Oct 2023 20:50:58 +0200 Subject: [PATCH] Fix compilation against Julia 1.11 Issue #135 --- include/jlcxx/tuple.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/jlcxx/tuple.hpp b/include/jlcxx/tuple.hpp index f2af9dc..b9c5279 100644 --- a/include/jlcxx/tuple.hpp +++ b/include/jlcxx/tuple.hpp @@ -87,7 +87,11 @@ template struct julia_type_factory, Tu jl_datatype_t* result = nullptr; JL_GC_PUSH1(¶ms); params = jl_svec(sizeof...(TypesT), jlcxx::julia_type()...); + #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; }