|
Boost : |
From: Paul A Bristow (pbristow_at_[hidden])
Date: 2007-01-17 05:16:52
>-----Original Message-----
>From: boost-bounces_at_[hidden]
>[mailto:boost-bounces_at_[hidden]] On Behalf Of Matthias Schabel
>Sent: 17 January 2007 02:29
>To: boost_at_[hidden]
>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_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk