boost::units::is_unit_of_dimension<unit< Dim, System >, Dim>
// In header: <boost/units/is_unit_of_dimension.hpp> template<typename Dim, typename System> struct is_unit_of_dimension<unit< Dim, System >, Dim> { };