9 Sep
2010
9 Sep
'10
10:53 a.m.
Hello, On Thu, Sep 9, 2010 at 5:29 AM, Jan Rheinländer <jrheinlaender@gmx.de> wrote:
Problem: Return type of function is "ex". MSVC complains that it cannot convert "GiNaC::power*" to "ex"
This sounds like a compiler bug. ex is actually a wrapper around GiNaC::ptr<basic>, and ptr<T> has a ctor ptr::ptr(T* ). power* is a subclass of basic, so conversion from power* to ex should be fine. Well, the code is not performance critical anyway, so the patch is basically OK. However, could you please add the comment into the source? Otherwise the code looks a bit silly/suboptimal and someone might revert your patch by accident. Best regards, Alexei