Skip to content

Support of std::valarray #824

Answered by 1uc
kpolitis-msim asked this question in Questions
Discussion options

You must be logged in to vote

That does seem like a useful one to support. Thanks for making us aware.

That's correct, you'd start in details::inspector. I'd suggest copy-pasting and modifying this specialization:

struct inspector<std::array<T, N>> {

Maybe look at the version for std::vector to see how the resizing comes into it. With any luck the inspector is the only trait you need to modify; once that's correct, it is supposed to work.

For setting up tests probably look here:
https://github.com/BlueBrain/HighFive/blob/master/tests/unit/test_all_types.cpp
and add a block for std::valarray<Scalar> and then other things like std:…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alkino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants