-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend supported stl types for std::array #55
Comments
Next version will have native STL support, until then you can obtain the pointer to
|
Hmm, ess's h5cpp ( as well as my old dead project) did this pretty easily, re the std::vector handler, you just need to recursively construct the type T's h5 type; no need to bring in the dreaded vlen: https://github.com/ess-dmsc/h5cpp/blob/2cfb0adae60d847f95d692374df5a69732c2c0e2/src/h5cpp/datatype/type_trait.hpp#L217 . Does make the assumption of types though; however I've only ever needed this for fixed size types (except std::vectorstd::string ...) Understood you're working on the whole system of type support though. |
yes you are correct, the particular type is indeed a standard layout, the std::array<std::vector,N) and similar variants fall under VLEN category. The types are 'reasoned' as opposed to 'baked in'. |
I think I see 2 spaces where std::array should be incorporated
The first is in simply writing or reading std::array<T, N> to a dataset/attribute.
The second is writing a collection of std::array<T, N>, like std::vector<std::array<T, N>>
The text was updated successfully, but these errors were encountered: