-
Notifications
You must be signed in to change notification settings - Fork 157
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
Removal of support for bool? #647
Comments
Thank you for reporting the issue. I'm able to reproduce it locally, we'll look into it. If you urgently require any of the newly introduced functionality, you might be able to work around the issue by storing/loading a HighFive::File file(FILE_NAME);
HighFive::Group group = file.createGroup(GROUP_NAME, true);
group.createAttribute(ATTR_NAME, std::uint8_t{true});
auto attr = bool(group.getAttribute(ATTR_NAME).read<std::uint8_t>()); |
Thanks, I've indeed rewritten our code using |
I would be nice to simply store/load
This is also what you see in the PR you link, for reintroducing support for |
Makes a lot of sense. |
@johnlees |
Describe the bug
When trying to store a bool with:
Two compiler errors occur due to a static_assert added in v2.5.0
To Reproduce
Either see the following build:
Steps to reproduce the behavior:
environment.yml
with condapython setup.py build
Expected behavior
Build without failure, no
static_assert
issueStacktrace
The following compiler errors occur:
Desktop (please complete the following information):
Additional context
This appears to be due to this
static_assert
: https://github.com/BlueBrain/HighFive/blob/master/include/highfive/bits/H5Converter_misc.hpp#L83Which seems to have be introduced in:
#586
So I think this has effectively removed support for storing a single
bool
, and I don't see this deprecation in any of the release notes?I see that there is discussion about
vector<bool>
not yet being supported, but it seems even a singlebool
has been removed, which is awkward for backwards compatibility.I also see that #591 reported something similar.
The text was updated successfully, but these errors were encountered: