boost::units::pow
// In header: <boost/units/cmath.hpp> template<typename S, typename Y> quantity< (quantity< q1, quantity< q2);
For non-dimensionless quantities, integral and rational powers and roots can be computed by pow<Ex> and root<Rt> respectively.
pow<Ex>
root<Rt>