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 --- src/tag_list.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/tag_list.cpp b/src/tag_list.cpp index 34112b3eca..7900f9872e 100644 --- a/src/tag_list.cpp +++ b/src/tag_list.cpp @@ -132,8 +132,6 @@ auto tag_list::cend() const -> const_iterator { return tags.cend(); } bool operator==(const tag_list& lhs, const tag_list& rhs) { - if(lhs.size() == 0 && rhs.size() == 0) - return true; return lhs.el_type_ == rhs.el_type_ && lhs.tags == rhs.tags; } -- cgit 0.0.5-2-1-g0f52