Boost logo

Boost Users :

Subject: [Boost-users] [Units] Variant runtime analysis
From: Samuel Debionne (debionne_at_[hidden])
Date: 2011-02-25 11:21:19


Hello all,
My use case is the following : I have a function that returns quantities
of different units depending on its input parameters (different
derivatives).
I could split the function in two parts that returns one unit only, but
that would move the problem to an other place in my code.
Is there any way to handle this, without breaking the dimensional analysis ?
I have been playing with things like :

quantity<variant<force, length, energy> >

but it doesn't seems to go anywhere...
Samuel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net