Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-06-19 16:44:46


"Janek Kozicki" <janek_listy_at_[hidden]> wrote in message
news:20060618012322.39a96ebf_at_absurd...
> Oleg Abrosimov said: (by the date of Thu, 15 Jun 2006 14:33:40 +0700)
>
>> Janek Kozicki writes:
>> > Given that, maybe there is no need at all to define velocity.hpp,
>> > pressure.hpp and all the others with dimensions combined? When the user
>> > plans to work with velocity he will just write:
>> >
>> > // requires only this macro
>> > BOOST_UNITS_DIVIDED(pqs::length::m,pqs::time::s,velocity);
>> >
>> > instead of this:
>> >
>> > // requires file velocity.hpp with dozens of definitions inside
>> > typedef pqs::velocity::m_div_s velocity;
>>
>> or, may be as simple as pqs::velocity?
>
> and maybe even this:
>
> velocity v = 10*meter()/second();
>
> ?

Yes...that isw hat i am calling a 'view'. IMO thats trivial to do with PQS as I
showed in an earlier post and Daid Walthall in a later one !

regards
Andy Little


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk