[GiNaC-devel] Patch 2
    Alexei Sheplyakov 
    alexei.sheplyakov at gmail.com
       
    Thu Sep  9 10:53:29 CEST 2010
    
    
  
Hello,
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
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
    
    
More information about the GiNaC-devel
mailing list