Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-02-16 01:36:35


>> std::cout << ((x + y) * user_selected_unit) << std::endl;

How is this different from/better than

std::cout << quantity<your_system::psi>(x+y) << std::endl;

or, if you prefer,

typedef quantity<your_system::psi> psi;

std::cout << psi(x+y) << std::endl;

??

Matthias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk