|
Why is there no policy driven design for handling
overflows
The question was - to which type does one apply it to?
Consider the following example:
safe<int, overflow_policy_1> t1 = 2;
safe<int, overflow_policy_2> t2 = 4;
unsigned int x = t1 - t2; // which policy should be invoked?
|