diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-08-02 18:48:27 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-08-02 18:48:27 +0200 |
| commit | 06644a4f989fa9fe673281859734be7a7b72aeac (patch) | |
| tree | 539f9b2636ad61852c0926364179cd5952551781 /include | |
| parent | 0577e90fd1d73777e0c73995ac83bb2e0fc77db3 (diff) | |
| download | Project-Tick-06644a4f989fa9fe673281859734be7a7b72aeac.tar.gz Project-Tick-06644a4f989fa9fe673281859734be7a7b72aeac.zip | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag_list.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
