
2 Mar
2011
2 Mar
'11
3:19 a.m.
In the Boost Unit documentation there are examples on creating quantities using a dimension. There doesn't seem to be any documentation on using a specific type of dimension as a quantity. Is it possible to create a quantity with a specific type of dimension value? using namespace boost::units; using namespace boost::units::si; quantity<length> L = 2.0*meters; //Is it possible to have meters instead of length as a quantity? quantity<???> L = 2.0 * meters; Ryan