
Samuel Debionne
Runtime conversion are also something I am interrested. Are you following the lead of :
http://www.boost.org/doc/libs/1_46_0/doc/html/boost_units/Examples.html#boos... nits.Examples.RuntimeUnits
I think that we could layer things this way :
LAYER 3: any_quantity
runtime dimensional analysis and conversion LAYER 2: any_quantity
compile time dimensional analysis and runtime conversion LAYER 1: quantity<unit> the actual library
Fwiw: this runtime variant would be really welcome. In our application we calculate some data with various units (e.g. m/s, m) which gets plotted. The plotter just talks to the base class of the data, like: struct Data { Unit GetUnit () const; double GetValue(size_t nIndex) const; }; Also the user is able to specify his display units (e.g. cm instead of m), and we use the runtime unit for scaling the physical quantities. (snipped some quoted stuff, gmane reports: 'There's much more quoted text in your article than new. Prune quoted stuff.')