[GiNaC-devel] Subclassing symbol

Jan Rheinländer jrheinlaender at gmx.de
Wed May 11 21:56:50 CEST 2016


Hi,

the code is practically the same as in GiNaC symbol.h and symbol.cpp
(for symbol subclasses realsymbol / possymbol).
I did try using GINAC_DECLARE_REGISTERED_CLASS(ncsymbol, symbol) etc. as
well but it makes no difference.

And I just tried: If I use GiNaC::realsymbol class instead of my own
ncsymbol class the code also crashes. So maybe its a GinaC bug?

Am 11.05.2016 um 21:45 schrieb Vladimir V. Kisil:
>>>>>> On Wed, 11 May 2016 21:10:29 +0200, Jan Rheinländer <jrheinlaender at gmx.de> said:
>     JR> Hi, something must be wrong with my subclass, but I don't
>     JR> understand it.
>
>     Did you look into section "6.5.1 Hierarchy of algebraic classes" of
>   the tutorial? I think you need to use several macros described there.



More information about the GiNaC-devel mailing list