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

Interface with std::byte #8

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

Interface with std::byte #8

Morwenn opened this issue Oct 3, 2016 · 0 comments

Comments

@Morwenn
Copy link
Owner

Morwenn commented Oct 3, 2016

We've still got plenty of time, but std::byte could be a pretty convenient way to initialize a gray_code by just stealing its bits. It may be better than the current two-phase initialization with gray_code<unsigned> g; g.value = 0b01101;.

Too bad it's only one byte and note an arbitrary number of bits though.

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