boost::units::is_quantity — check that a type is a quantity
// In header: <boost/units/is_quantity.hpp> template<typename T> struct is_quantity { };