
29 Mar
2007
29 Mar
'07
7:14 p.m.
One more thought, instead of:
q = quantity<SI::length,double>(r);
what about a syntax like
q.convert_from(r)
to emphasize that this is performing a safe unit conversion, and to avoid having to repeat the type name?
We currently have a static member function that works like that : q = quantity<SI::length,double>::from_value(r); Maybe that's enough... Matthias