![]() |
Safe Numerics |
This library really an re-implementation the facilities provided by David LeBlanc's SafeInt Library using Boost. I found this library very well done in every way. My main usage was to run unit tests for my embedded systems projects on my PC. Still, I had a few issues.
It was a lot of code in one header - 6400 lines. Very unwieldy to understand, modify and maintain.
I couldn't find separate documentation other than that in the header file.
It didn't use Boost conventions for naming.
It required porting to different compilers.
It had a very long license associated with it.
I could find not test suite for the library.
This version addresses these issues. It exploits Boost facilities such as template metaprogramming to reduce the number of lines of source code to approximately 1500. It exploits the Boost Preprocessor Library to generate exhaustive tests.
All concepts, types and functions documented are declared in the
namespace boost::numeric.