Skip to content
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

P0237: Wording for fundamental bit manipulation utilities #9

Open
Morwenn opened this issue Oct 6, 2016 · 0 comments
Open

P0237: Wording for fundamental bit manipulation utilities #9

Morwenn opened this issue Oct 6, 2016 · 0 comments

Comments

@Morwenn
Copy link
Owner

Morwenn commented Oct 6, 2016

P0237, Wording for fundamental bit manipulation utilities might appear in a near future (its current target is C++Next) and changes the way bits are seen:

  • We should make sure that bit_iterator works with gray_code.
  • Instead of bool, it might be better to use std::bit_value, not to confuse the logical type and the bit one.
  • std::binary_digits is designed to be specialized for user-defined types. We should take the opportunity to do so for gray_code:

There is still plenty of time anyway, but it might help to get a cleaner design in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant