From: Martin Bonner (martin.bonner_at_[hidden])
Date: 2006-06-07 05:18:21
[mailto:boost-bounces_at_[hidden]] On Behalf Of Gerhard Wesp Sent:
07 June 2006 09:58 To: boost_at_[hidden]
Subject: Re: [boost] [Review][PQS] Review deadline
>> all numeric values input or output are enforced by the compiler to
>> have documented units. Code is clear and simple, like this:
>> length x = 1000.0 * meter;
>> velocty v = 2.0 * nautical_mile / hour;
>> time t = x / v; // typically LOTS of computations here ...
>> cout << "Time in seconds = " << t / second;
> I like this notation.
Yes. Very neat.
> I'm not sure, however, why t = x / v should involve lots of
I think the OP meant that the single division operator here is usually
replaced by lots of computations in his applications ... which is why he
is concerned that the the division operator should be translated to a
single FDIV instruction by the compiler.
-- Martin Bonner Martin.Bonner_at_[hidden] Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 203894
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk