Boost logo

Boost :

From: David Richardson (dgr24_at_[hidden])
Date: 2003-10-10 12:52:13


> - I was worried about being limited to force, mass or acceleration. Can
> you do compile time combination of units ?
> Take this example, I have meters and seconds, I want to build speed (ms^-1)

You can define m/s as:

    new_unit::Div<Units<double>::Length, Units<double>::Time>::type
or use the library supplied typedef

    Units<double>::Velocity

> - It would be nice also to merge this library with a "physical
> constants" like gravity, and others...- do you plan to support other
> units ? J, K, °C, mol, l, etc...

This is not in there right now, I'd have to think about how much
work it would be to add.

> - did you think about a-dimensional units ? this is very common in fluid
> mechanics.
>

I don't know what an a-dimensionl unit is...


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