Skip to content
Snippets Groups Projects
Commit 42558285 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

refactor

parent 8d183e27
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,9 @@ bool State::operator < (const State& other) const { ...@@ -24,8 +24,9 @@ bool State::operator < (const State& other) const {
bool State::operator == (const State& other) const { bool State::operator == (const State& other) const {
return name == other.name; return name == other.name;
} }
bool State::operator != (const State& other) const{ bool State::operator != (const State& other) const{
return name != other.name; return !(*this == other);
} }
   
std::ostream& operator<<(std::ostream& out, const State& state) { std::ostream& operator<<(std::ostream& out, const State& state) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment