boost::units::get_dimension<unit< Dim, System >> — get the dimension of a unit
template<typename Dim, typename System> struct get_dimension<unit< Dim, System >> { // types typedef Dim type; };