From 06644a4f989fa9fe673281859734be7a7b72aeac Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Sun, 2 Aug 2015 18:48:27 +0200 Subject: Change semantics of empty list equality I considered making empty lists of undetermined type equal to all empty lists, but then the comparison would not be transitive --- include/tag_list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/tag_list.h b/include/tag_list.h index af5a87d5ee..adb8623f45 100644 --- a/include/tag_list.h +++ b/include/tag_list.h @@ -161,8 +161,8 @@ public: /** * @brief Equality comparison for lists * - * Lists are considered equal if they contain equal tags. Empty lists - * are always considered equal to each other. + * Lists are considered equal if their content types and the contained tags + * are equal. */ friend bool operator==(const tag_list& lhs, const tag_list& rhs); friend bool operator!=(const tag_list& lhs, const tag_list& rhs); -- cgit 0.0.5-2-1-g0f52