Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Boost.Units is the Boost library to specify SI units (meter, kilogram, second, ampere, kelvin, candela, mole) for values. This allows the compiler to check your calculations at compile-time.
In the example below, two lengths are added with success. Also the compiler prevented the adding of a force and a length.
#include <iostream> |
See Boost.Units bug.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.