
In the attached code I am trying to take a constant physical unit and raise it to a power of two. The compiler is complaining that it cannot find a template to satisfy multiply_typeof_helper. It says that there are more than one partial specialization that matches the template argument list. I read something on the web about there was no pow operation for constants. The solution to that problem was to upgrade to Boost 1.48. Unforunately I am constrained to using Boost 1.45. What is an work around for this problem?'
You also should probably not be replicating the, perhaps overly, complicated constants infrastructure; for user code, you can just as easily do: static const quantity<blah> const(somevalue); This should sidestep the missing function problem and other subtle issues... Matthias