X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fsymbol.h;h=ec371f8c3ed8ad40374b8bfc96b845f5d8a66e12;hp=eefd27c80672583ab37f5ae1be2b544fa0b805c2;hb=f5abf61d2cb1a1d1809d270a24fa098575b172c4;hpb=00507499530d90533cf029bd503be326d9018138 diff --git a/ginac/symbol.h b/ginac/symbol.h index eefd27c8..ec371f8c 100644 --- a/ginac/symbol.h +++ b/ginac/symbol.h @@ -69,7 +69,7 @@ protected: // non-virtual functions in this class public: void set_name(const std::string & n) { name = n; } - std::string get_name() const { return name; } + std::string get_name() const; virtual unsigned get_domain() const { return domain::complex; } protected: void do_print(const print_context & c, unsigned level) const; @@ -81,7 +81,7 @@ protected: protected: unsigned serial; ///< unique serial number for comparison - std::string name; ///< printname of this symbol + mutable std::string name; ///< printname of this symbol std::string TeX_name; ///< LaTeX name of this symbol private: static unsigned next_serial; @@ -108,7 +108,7 @@ public: GINAC_DECLARE_UNARCHIVER(realsymbol); -/** Specialization of symbol to real domain */ +/** Specialization of symbol to real positive domain */ class possymbol : public realsymbol { public: