
12 Feb
2007
12 Feb
'07
9:29 p.m.
Not necessarily. static_multiply has to be able to operate on an mpl::list.
Exactly...
There is also a lack of meta functions to identify units and quantities as types (only dimensions have this functionality) for use in such things as enable_if and other meta programming utilities.
Good point.
I've added is_dimension<D> is_unit<U> is_unit_of_system<U,S> is_quantity<Q> is_quantity_of_system<Q,S> for the next version. I should probably also allow querying the existence of an explicit conversion...although I suspect is_convertible already does that... Matthias