News for hackers. Stuff that matters.
Re:Bounded Integer: Header-only C++ library replaces integer... by q3k on Sunday September 29, 2019 @04:28PM (#21109423)
> What would be the alternative in those places?

Fix the damn language.

Re:Bounded Integer: Header-only C++ library replaces integer... by netheril96 on Monday September 30, 2019 @12:46AM (#21111841)
As in, adding more features to C++? And then people cry about how complex C++ is.
Re:Bounded Integer: Header-only C++ library replaces integer... by byuu on Monday September 30, 2019 @01:16AM (#21111961)
Stop worrying about 9-bit bytes, only logical shift right for signed integers, ones-complement and sign-bit integers, etc and define this stuff in the standard. PDP-11 was a long time ago. C++20 is heading in the right direction with defining twos-complement. The next good step would be declaring signed overflow as wrapping (eg -fwrapv)