X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcolor.h;h=1e6e25d615d9f870ce5779e9201b842efbd8ecca;hp=ebf28f698a0b8fc506ffe64bd8a527a3a158f842;hb=fc6d6774bb3d125be622bd84edb7e2ed4f77655c;hpb=3ac17e18ada69428fe170c10abcc5f33a30f0676 diff --git a/ginac/color.h b/ginac/color.h index ebf28f69..1e6e25d6 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -41,6 +41,8 @@ namespace GiNaC { class color : public indexed { GINAC_DECLARE_REGISTERED_CLASS(color, indexed) +public: + static const tinfo_static_t return_type_tinfo_static[256]; // other constructors public: @@ -58,7 +60,7 @@ protected: ex thiscontainer(const exvector & v) const; ex thiscontainer(std::auto_ptr vp) const; unsigned return_type() const { return return_types::noncommutative; } - const basic* return_type_tinfo() const { return this; } + tinfo_t return_type_tinfo() const { return color::return_type_tinfo_static+representation_label; } // non-virtual functions in this class public: