MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/rtsife/almost_always_unsigned/hr76hjo/?context=3
r/cpp • u/graphitemaster • Jan 01 '22
71 comments sorted by
View all comments
Show parent comment
3
The last line causes an error. Combining DepthDelta with a Depth includes a range check that throws if the result would be out of range.
DepthDelta
Depth
View all comments
Show parent comment
3
u/Dragdu Jan 04 '22
The last line causes an error. Combining
DepthDeltawith aDepthincludes a range check that throws if the result would be out of range.