July 24, 2007
A Little Ada with Your C++
Rich Herrick liked his ranged types in Ada, and missed them when developing in C++. So he rolled his own, and now he has some protection from out-of-range and overflow conditions in his code. Sure, there's some overhead, as there always is when trading execution or compile time for safety, but Rich's implementation does a pretty good job of limiting the cost, and maximizing the benefit. Check out Ada-style Ranged Types in C++.
Posted by Kevin Carlson at 02:46 PM Permalink
|