![]() |
Home | Libraries | People | FAQ | More |
boost::units::conversion_helper
// In header: <boost/units/conversion.hpp> template<typename From, typename To> struct conversion_helper { // public static functions BOOST_CONSTEXPR To (const From &); };
Template for defining conversions between quantities. This template should be specialized for every quantity that allows conversions. For example, if you have a two units called pair and dozen you would write
In most cases, the predefined specializations for unit
and absolute
should be sufficient, so users should rarely need to use this.