Morwenn/cpp-gray

Interface with std::byte

Opened this issue · 0 comments

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.