From 088205fa808107d6c5a12998eb4cfd4fd341caa1 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Thu, 20 Jul 2017 17:10:03 +0200 Subject: [PATCH] fix overrides in RightRG --- alib2data/src/grammar/Regular/RightRG.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alib2data/src/grammar/Regular/RightRG.h b/alib2data/src/grammar/Regular/RightRG.h index 934f07c1ee..06f3540ae7 100644 --- a/alib2data/src/grammar/Regular/RightRG.h +++ b/alib2data/src/grammar/Regular/RightRG.h @@ -307,7 +307,7 @@ public: /** * @copydoc alib::CommonBase<ObjectBase>::normalize() */ - virtual int compare ( const ObjectBase & other ) const { + virtual int compare ( const ObjectBase & other ) const override { if ( std::type_index ( typeid ( * this ) ) == std::type_index ( typeid ( other ) ) ) return this->compare ( ( decltype ( * this ) )other ); return std::type_index ( typeid ( * this ) ) - std::type_index ( typeid ( other ) ); @@ -320,7 +320,7 @@ public: * * \returns actual relation between two by type same grammar instances */ - virtual int compare ( const RightRG & other ) const override; + int compare ( const RightRG & other ) const; /** * @copydoc alib::CommonBase<ObjectBase>::operator >> ( std::ostream & ) -- GitLab