From 036147996b0973027378f402b0a0c1e2adfa4fc9 Mon Sep 17 00:00:00 2001 From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl> Date: Wed, 17 Aug 2011 14:14:24 +0200 Subject: [PATCH] tag operator!= --- libcorpus2/tag.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libcorpus2/tag.h b/libcorpus2/tag.h index 29f59be..2713071 100644 --- a/libcorpus2/tag.h +++ b/libcorpus2/tag.h @@ -143,10 +143,17 @@ public: bool operator<(const Tag& other) const; /** - * Tag equality. Non-equality is provided by Boost template magic. + * Tag equality. */ bool operator==(const Tag& other) const; + /** + * Tag inequality. + */ + bool operator!=(const Tag& other) const { + return !((*this) == other); + } + /** * Boost seralization support. Users must include appropriate boost headers. */ -- GitLab