13 Feb
2009
13 Feb
'09
3:04 p.m.
Hi, What sort of magic do I have to write to get this sort of thing to work? === typedef boost::units::quantityboost::units::si::length length_t; length_t earth_radius = 3438.461 * nautical_mile; === boost::units defines a boost::units::metric::nautical_mile_base_unit in terms of meters, so the numbers and concepts are in the library already. Somehow. Thanks for any help :) -- kind regards, Esben