3 ms·
The Boost.Units[1] library takes this even further, allowing you to do things like divide a length by a time quantity and get a velocity, again with compile-tim
by rcfox 13y ago
The Boost.Units[1] library takes this even further, allowing you to do things like divide a length by a time quantity and get a velocity, again with compile-time type checking.
[1]: http://www.boost.org/doc/libs/1_55_0/doc/html/boost_units.html http://www.boost.org/doc/libs/1_55_0/doc/html/boost_units.ht...
- EdwardDiego 13y agoF# has similar also: http://en.wikibooks.org/wiki/F_Sharp_Programming/Units_of_Measure http://en.wikibooks.org/wiki/F_Sharp_Programming/Units_of_Me...