Boost logo

Boost :

From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2006-06-17 19:23:22


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();

?

-- 
Janek Kozicki                                                         |

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