From 4255828539227da9ca6dff6236d3948a479b8052 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Mon, 5 May 2014 13:07:03 +0200 Subject: [PATCH] refactor --- alib2/src/automaton/State.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alib2/src/automaton/State.cpp b/alib2/src/automaton/State.cpp index 58a8f7cbce..2c99e39ebe 100644 --- a/alib2/src/automaton/State.cpp +++ b/alib2/src/automaton/State.cpp @@ -24,8 +24,9 @@ bool State::operator < (const State& other) const { bool State::operator == (const State& other) const { return name == other.name; } + bool State::operator != (const State& other) const{ - return name != other.name; + return !(*this == other); } std::ostream& operator<<(std::ostream& out, const State& state) { -- GitLab