-
Notifications
You must be signed in to change notification settings - Fork 69
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
mdarray<bool> with std::vector container #359
Comments
It's because the underlying storage of |
Thanks for the feedback. Yes, you are right, it is not a problem of beeing a sequence container. The issue is more about the way type aliases are defined in
Also, the member function I cannot specify a custom accessor for mdarray. I am just wondering whether |
Two cents from someone not involved with |
The specialization of
std::vector<bool>
always causes some trouble. I am trying to use themdarray
container adapter with element typebool
and neither the current stable implementation in this repository nor to standard proposal document P1684R5 seem to address this issue.There are many problems, I list just a few:
std::vector<bool>::pointer
is not convertible tobool*
std::vector<bool>::data()
does not exist.to_address(std::vector<bool>().begin())
is invalidSo, the issue clearly is that
std::vector<bool>
is not a SequenceContainer.Should this be a supported type in
std::mdarray
? Is there a workaround, except for using a completely different container from outside the c++ standard library?The text was updated successfully, but these errors were encountered: