[GiNaC-devel] Why does this program crash?

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Fri May 13 23:32:44 CEST 2016


  Dear Jan,

  I think it is crucial that you would provide the full definition of your
  derived class. Otherwise it is not possible to track the issue.

  Best wishes,
  Vladimir 
-- 
Vladimir V. Kisil                 http://www.maths.leeds.ac.uk/~kisilv/
  Book:     Geometry of Mobius Transformations     http://goo.gl/EaG2Vu
  Software: Geometry of cycles          http://moebinv.sourceforge.net/
>>>>> On Fri, 13 May 2016 19:16:29 +0200, Jan Rheinländer <jrheinlaender at gmx.de> said:

    JR> Hi, I condensed my previous post on subclassing symbol into this
    JR> little program, which crashes at the last line. Any idea why? Is
    JR> it a bug or do I just not understand C++ inheritance?

    JR>      #include <iostream> #include <ginac/ginac.h> using
    JR> namespace std; using namespace GiNaC;

    JR>      int main() { symbol x("x"); x = realsymbol("y"); cout << x
    JR> << endl; }

    JR> Jan

    JR> _______________________________________________ GiNaC-devel
    JR> mailing list GiNaC-devel at ginac.de
    JR> https://www.cebix.net/mailman/listinfo/ginac-devel

  


More information about the GiNaC-devel mailing list