On Jan 12, 2016, at 1:50 PM, Robert Ramey
It's going to be a little trickier than that. One basic problem is that there more than two cases, yes, no, have to check at runtime.
Yes, but I expected this to boil down to one of two cases depending on policy: - yes, no, or fail to compile, or - yes, no (will compile but may or may not invoke a runtime check) I thought those were basically the options for any of the operations and that the difference was based upon the policy choice. Do I misunderstand?
The above return a "checked_result
" - which is decribed in another part of the documentation. Basically its similar to "optional" so it either returns a valid new interval or an error condition which you can test for.
It seems that the best correspondence might be something like the following:
typedef safe_int