
----Original Message---- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Gerhard Wesp Sent: 07 June 2006 09:58 To: boost@lists.boost.org 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 computation.
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@Pitechnology.com Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 203894