4 Dec
2018
4 Dec
'18
3:27 a.m.
On Dec 3, 2018, at 10:08 PM, Hans Dembinski
wrote: I am aware of the Boost operators library, but it is good that you remind me. If I allow my size_type to be implicitly convertible to int, I do not even have so many operators to implement. Implicit conversions are often bad, but it may be ok here.
Is this discussion moving in the direction of a safe_unsigned<T> type, i.e., unsigned without modulo arithmetic? I can't recall if Robert Ramey's safe_numerics library does that, but that might be useful. Cheers, Brook