Will the C ++ 17 standard include "std :: byte"?

According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0298r0.pdf :

std::byte not an integer, not a character. std::byte more expressive and type safe than char .

However, this function is not included in the list of C ++ 17 functions of wikipedia .

My question is: Will the C ++ 17 standard include std::byte ?

+6
source share
2 answers

According to Chandler Carrut on reddit live C ++ 17 thread :

C ++ 17 will be of type std::byte for use when accessing the underlying repository, rather than using char or unsigned char !

Although not yet reflected in the latest working draft, it seems that he was voted in plenary in Kon. It literally happened two days ago, so give him time.


Now it is in the last working draft, in the <cstddef> synopsis .

+13
source

Currently nothing is said about std :: byte in a C ++ 17 working draft.

See: http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/n4618.pdf

Update: C ++ 17 will contain std :: byte

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/#mailing2017-03

+4
source

Source: https://habr.com/ru/post/1015488/


All Articles