Skip to content

Commit

Permalink
Merge pull request #38 from SylvainCorlay/update-type-mapping
Browse files Browse the repository at this point in the history
Update Julia type mapping
  • Loading branch information
SylvainCorlay committed Dec 30, 2021
2 parents a5ca567 + 4376a91 commit a47fcaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/xtensor-julia/jlarray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ namespace jlcxx
}
};

template <class T>
struct static_type_mapping<xt::jlarray<T>>
template <class T, class SubTrait>
struct static_type_mapping<xt::jlarray<T>, CxxWrappedTrait<SubTrait>>
{
using type = jl_array_t*;
};
Expand Down
4 changes: 2 additions & 2 deletions include/xtensor-julia/jltensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ namespace jlcxx
}
};

template <class T, std::size_t N>
struct static_type_mapping<xt::jltensor<T, N>>
template <class T, std::size_t N, class SubTrait>
struct static_type_mapping<xt::jltensor<T, N>, CxxWrappedTrait<SubTrait>>
{
using type = jl_array_t*;
};
Expand Down

0 comments on commit a47fcaf

Please sign in to comment.