
4 Dec
2024
4 Dec
'24
2:05 p.m.
On Wed, Dec 4, 2024 at 2:36 PM Claudio DeSouza via Boost < boost@lists.boost.org> wrote:
There has been some discussion about this and the consensus is that `uint8_t` is a better option than `std::byte` as the former represents a determinate number of bytes ( https://isocpp.org/wiki/faq/intrinsic-types#bits-per-byte). So `span<const uint8_t>, and `span
` for immutable and mutable bytes respectively.
I presume think static_assert for CHAR_BIT value is enough, I am not aware of anybody using systems where this is not true, despite what faq says... but I must admit I am not familiar with all weird archs so I could be wrong