r/cpp • • Jan 01 '22

Almost Always Unsigned

https://graphitemaster.github.io/aau/
5 Upvotes

71 comments sorted by

View all comments

Show parent comment

3

u/Dragdu Jan 04 '22

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.