diff --git a/centroid.h b/centroid.h index 1eb448f..d02a67a 100644 --- a/centroid.h +++ b/centroid.h @@ -4,4 +4,5 @@ struct centroid_t { float location; float size; bool operator== (const centroid_t& other) { return !memcmp(this, &other, sizeof(other)); } + bool operator!= (const centroid_t& other) { return !(*this == other); } };