Support of std::valarray #824
-
Hello, I was wondering what the required modifications are to higfive in order to support std::valarray for read/write operations. Thanks :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That does seem like a useful one to support. Thanks for making us aware. That's correct, you'd start in 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: Or start by adding a simple |
Beta Was this translation helpful? Give feedback.
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:HighFive/include/highfive/bits/H5Inspector_misc.hpp
Line 482 in d5c756b
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 likestd:…