diff --git a/alib2data/src/grammar/Regular/RightRG.h b/alib2data/src/grammar/Regular/RightRG.h
index 934f07c1eeb29cd06b5aa851fde8826e94f2f684..06f3540ae72acd75ac1dda5e75bb4141402492d6 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 & )