boost::units::is_quantity_of_dimension — check that a type is a quantity of the specified dimension
template<typename T, typename Dim> struct is_quantity_of_dimension { };