
Alfredo,
Thank you for your answers. To be more pragmatic here is an archetype of
function that I have in my problem :
any_quantity
I think this goes against the library design which is to be zero overhead. (But it may be useful some times although my pattern above is a good competition against your requested feature)
What I was working on is something like:
any_quantity
that can hold any quantity with force dimension, this makes more sense to me because at least I know the all force quantities are potentially convertible to one another, regardless of the unit system. In my proposal there is no runtime checking at all, but only runtime conversions.
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...
I think that we could layer things this way :
LAYER 3: any_quantity
In any case I would like to know of any solution you can come up with.
Of course.