[GiNaC-devel] Patch 2
alexei.sheplyakov at gmail.com
Thu Sep 9 10:53:29 CEST 2010
On Thu, Sep 9, 2010 at 5:29 AM, Jan Rheinländer <jrheinlaender at 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
and ptr<T> has a ctor ptr::ptr(T* ). power* is a subclass of basic, so
from power* to ex should be fine. Well, the code is not performance
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.
More information about the GiNaC-devel