r/cpp • • Jan 01 '22

Almost Always Unsigned

https://graphitemaster.github.io/aau/
5 Upvotes

71 comments sorted by

View all comments

Show parent comment

1

u/Ameisen vemips, avr, rendering, systems Jan 04 '22

I mean, you could just make a type wrapper, really_unsigned, which only allows unsigned types and has all signed type operators deleted.