Boost logo

Boost :

From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2006-08-24 05:19:27

Janek Kozicki said: (by the date of Thu, 24 Aug 2006 11:12:20 +0200)

> Matthias Troyer said: (by the date of Thu, 24 Aug 2006 13:17:09 +0900)
> Displaying a unit using correct unit should be left up for the user - he
> chooses what name he wants displayed. The library could only take care
> to correctly convert the value for output requested so that it matches
> required unit - eg. passed as a string: "kNm","Nm","J","kWh" or "kg m^2 s^-2"

sorry, in fact it is enough if the library makes it possible to do such
conversion before the user outputs his value. This can be as simple as
declaring a temporary of desired unit, assigning and then printing it.
So no parsing of strings "kWh" is necessary inside the libary.

That's the 'minimalism' route taken by Eric. This solution is good for
me too. Adheres to ockham's razor ;)

Janek Kozicki                                                         |

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