/** @file ex2.cpp **/ #include "xo/unit/quantity.hpp" #include int main () { namespace u = xo::unit::units; namespace qty = xo::unit::qty; using xo::unit::quantity; using namespace std; quantity t = qty::milliseconds(10); quantity m = qty::kilograms(2.5); auto a = m / (t*t); cerr << "t: " << t << ", m: " << m << ", m.t^-2: " << a << endl; } /** end ex2.cpp **/