logoalt Hacker News

s28ltoday at 1:46 PM1 replyview on HN

char* can also be a C-style string. std::byte has the same special treatment in the standard as char and unsigned char, with the added benefit of not being used for other purposes (i.e. ASCII character or uint8, respectively).


Replies

mwkaufmatoday at 4:10 PM

I was trying to appeal to OPs maladaptive "C++ that looks like C is more legitimate" aesthetic preference, haha.