You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2021/11/10 17:36:20 UTC
[nifi-minifi-cpp] branch main updated: MINIFICPP-1679 revert
Relationship operator!= Because on GCC < 10,
consistent comparison is not supported yet. :(
This is an automated email from the ASF dual-hosted git repository.
martinzink pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new e0554be MINIFICPP-1679 revert Relationship operator!= Because on GCC < 10, consistent comparison is not supported yet. :(
e0554be is described below
commit e0554be394445f4ada07815d4b4e1cf673b0c0a8
Author: Marton Szasz <sz...@apache.org>
AuthorDate: Wed Nov 10 17:53:50 2021 +0100
MINIFICPP-1679 revert Relationship operator!=
Because on GCC < 10, consistent comparison is not supported yet. :(
This closes #1209
Signed-off-by: Martin Zink <ma...@apache.org>
---
libminifi/include/core/Relationship.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libminifi/include/core/Relationship.h b/libminifi/include/core/Relationship.h
index 158392d..bda280e 100644
--- a/libminifi/include/core/Relationship.h
+++ b/libminifi/include/core/Relationship.h
@@ -54,6 +54,10 @@ class Relationship {
return name_ == other.name_;
}
+ bool operator!=(const Relationship& other) const {
+ return !(*this == other);
+ }
+
protected:
std::string name_ = "undefined";
std::string description_;