3 ms·
You might also be interested in boost::units. It implements units using a ton of templates and "compile-time metaprogramming". [0] The nice thing is that it h
by rubenbe 6y ago
You might also be interested in boost::units.
It implements units using a ton of templates and "compile-time metaprogramming". [0]
The nice thing is that it has no runtime overhead as all templates are "compiled away". The disadvantage is that when you make a mistake against units, it results in a "template compiler error explosion".
[0]https://www.boost.org/doc/libs/1_65_0/doc/html/boost_units.html https://www.boost.org/doc/libs/1_65_0/doc/html/boost_units.h...