]> www.ginac.de Git - ginac.git/blobdiff - ginac/registrar.h
Make ample use of the contextual keyword 'override'.
[ginac.git] / ginac / registrar.h
index 5c97e6d176c1c2b6f20dfa481465178879d47f53..5e2b0e49fbd18e71d658b517e1fee26321533efe 100644 (file)
@@ -151,9 +151,9 @@ public: \
        GINAC_DECLARE_REGISTERED_CLASS_NO_CTORS(classname, supername) \
 public: \
        classname(); \
-       virtual classname * duplicate() const { return new classname(*this); } \
+       classname * duplicate() const override { return new classname(*this); } \
        \
-       virtual void accept(GiNaC::visitor & v) const \
+       void accept(GiNaC::visitor & v) const override \
        { \
                if (visitor *p = dynamic_cast<visitor *>(&v)) \
                        p->visit(*this); \
@@ -161,7 +161,7 @@ public: \
                        inherited::accept(v); \
        } \
 protected: \
-       virtual int compare_same_type(const GiNaC::basic & other) const; \
+       int compare_same_type(const GiNaC::basic & other) const override; \
 private: