
On Mon, Mar 7, 2011 at 5:35 PM, Matthias Schabel
// takes any unit of length template<class System> void setX(quantity
> const& x) { // explicit conversion to si::length = meters m_X = quantitysi::length(x); }
Is the following set of statements correct. si::length has a
length_dimension and is part of the si::system. boost::units::si::
meter_base_unit::unit_type has a length_dimension and is part of the
si::system. boost::units::us::foot_base_unit::unit_type has a
length_dimension and is part of the us system.
Since an explicit conversion is needed I definitely don't understand the
differences between the following three statements. I've included examples
to show my limited understanding.
implicit conversion of quantity