
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Matthias Schabel Sent: 17 January 2007 02:29 To: boost@lists.boost.org Subject: Re: [boost] mcs::units informal review request I've also flipped the order of template parameters in quantity and added double as a default value_type...everything seems to work as before, but now you can write
quantity<SI::length> q1(1.5*SI::meters)
or what most people will do (as you said - and your examples should encourage) using namespace SI; ... quantity<length> q1(1.5 * meters); which seems pretty much as neat as you can get. Thanks - hope it wasn't too much of a PITA to change. (I've amazed myself by missing the obvious 1st time round - eg Math Toolkit where it took a question on the Boost to suggest the 'obvious' addition of = double). Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com