Skip to content

Commit

Permalink
Implemented operator!= in Image.h
Browse files Browse the repository at this point in the history
Implemented != operator for image class based on == operator
  • Loading branch information
Helge Hecht committed Aug 6, 2020
1 parent b4caada commit 7002541
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ImageProcessing/src/BlueFramework/ImageProcessing/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ class Image {
return true;
}

bool operator!=(const Image& other) const {
return !(this->operator==(other));
}

private:
int width_;
int height_;
Expand Down

0 comments on commit 7002541

Please sign in to comment.