Open aborzunov opened 2 years ago
Your issue about having documentation is a copy of #566, the second idea about supporting types with .begin()
, .end()
is nice too.
I wonder if you can do:
namespace HighFive {
namespace details {
template <>
struct inspector<buffer_t>: inspector<std::array<double, 2048ul>> {};
}
}
Yes, this works fine. Adding something like this (and one more complex example) in docs would help users a lot.
But, as you agreed, supporting generic range types with begin()
, end()
would be wonderful feature.
Feel free to close this duplication issue or rewording this one to more generic case.
The only problem I can see is when choosing to using the auto-serialisation and when choosing the normal serialisation? The normal serialisation - more specific - will always be faster so we should keep it.
Is your feature request related to a problem? Please describe.
On master branch we can:
But we will fail on
Describe the solution you'd like Example with implementing
inspector<>
specialisation in user/or highfive namesapce.Describe alternatives you've considered
Additional context A better solution would be implement auto serialisation for range-types (
.begin(), .end()
methods present)!