Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-04-02 15:42:44

> Do the casts give you anything that dividing by the unit doesn't
> get for
> you? For example, if we have a quantity len, and we want to get
> the value:
> quantity<SI::length> len = 2.0 * SI::meters;
> double d = len / SI::meters; // <---- gets the value!!

We're mainly concerned here about getting a non-const reference to
the actual data. In the release version, we will be eliminating the
existing quantity_casts as they are redundant and replacing them with
one that allows direct mutating access to the underlying value_type...


Boost list run by bdawes at, gregod at, cpdaniel at, john at