← Back to context

Comment by bobmcnamara

11 hours ago

I, for one, hate that int8 == signed char.

std::cout << (int8_t)32 << std::endl; //should print 32 dang it

Now you can also enjoy the fact that you can't even compile:

  std::cout << (std::byte)32 << std::endl;

because there is no default operator<< defined.

  • Very enjoyable. It will a constant reminder that I need to decide how I want std::byte to print - character or integer ...