...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::units::operator<< — Print a quantity
.
// In header: <boost/units/io.hpp> template<typename Char, typename Traits, typename Unit, typename T> std::basic_ostream< Char, Traits > & operator<<(std::basic_ostream< Char, Traits > & os, const quantity< Unit, T > & q);