Out of curiosity, is there any way to detect underflow/overflow errors for numbers at runtime? if no, why not? I know it can be the expected behavior but it would still be helpful I'm using Visual Studio 2010 if that changes anything
edit: for instance:
unsigned int a= 2;
unsigned int b= 3;
a -=b; //<- underflow