X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcolor.h;h=f2ef0fa85629a270ea29b6b90ee5dcd8a3762f00;hp=ebf28f698a0b8fc506ffe64bd8a527a3a158f842;hb=04aace56d3d2ca82be59460bf1922600ae43449a;hpb=3ac17e18ada69428fe170c10abcc5f33a30f0676 diff --git a/ginac/color.h b/ginac/color.h index ebf28f69..f2ef0fa8 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -3,7 +3,7 @@ * Interface to GiNaC's color (SU(3) Lie algebra) objects. */ /* - * GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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: