Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I bet there is already something like that available as library.


There is, e.g.:

https://github.com/dcleblanc/SafeInt

But IMO something like this should be a language thing, just so that it's not substantially harder or more verbose to use operators with explicit wraparound or trap.


What we need is a winner in the C++ package manager wars, then adding such dependencies wouldn't be such a big issue.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: