According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0298r0.pdf:
std::byte
is not an integer and not a character.std::byte
is more expressive and type-safe thanchar
.
However, this feature is not included in the C++17 feature list of wikipedia.
My question: Will the C++17 standard include std::byte
?
According to Chandler Carruth on the reddit live C++17 thread:
C++17 will have a
std::byte
type to use when referring to underlying storage rather than having to usechar
orunsigned char
!
While it's not yet reflected in the latest working draft, it seems that it was voted in in plenary in Kona. This literally happened two days ago, so give it time.
It is now in the latest working draft, in the <cstddef>
synopsis.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With