Skip to content

python type for std::array #50

Answered by vnghia
vnghia asked this question in Q&A
Jul 13, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

It will be just as simple as:

template <typename Type, size_t N>
struct nb::detail::type_caster<std::array<Type, N>>
    : nb::detail::list_caster<std::array<Type, N>, Type> {};

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wjakob
Comment options

@vnghia
Comment options

@vnghia
Comment options

@wjakob
Comment options

Answer selected by wjakob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants