Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-04-05 13:13:33


>> At least this is consistent with the treatment of heterogeneous units
>> (which will be better documented any time now...) throughout the
>> remainder of the library...
>
> I'm fine with that. Just make sure that the conversion factor
> is not 1.0 ;) And tell me how that line in my example will
> look like, when you correct the bug.

I'm going to implement a function for getting conversion factors;
something like

conversion_factor<CGS::dyne,SI::newton>()

The syntax Steven described should also work :

quantity<SI::dimensionless>(1.0*CGS::dyne/SI::newton)

Matthias


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