diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-12-02 17:34:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 17:34:45 +0100 |
commit | 892a5a72cd9b25dc660671b9f4244fd842884b9f (patch) | |
tree | fb410b4b5daa1e8a79dc9f7983c43bcd9b196e8f /tests | |
parent | 11d5b91462285d9fc541c20331aedcd4511908cd (diff) | |
parent | 7da392bcc52366740394322728464e724cf20cdf (diff) |
Merge pull request #55474 from akien-mga/copy-operators-no-reference
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/templates/test_oa_hash_map.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/core/templates/test_oa_hash_map.cpp b/tests/core/templates/test_oa_hash_map.cpp index 904c01642d..f7b2b7cdb0 100644 --- a/tests/core/templates/test_oa_hash_map.cpp +++ b/tests/core/templates/test_oa_hash_map.cpp @@ -55,7 +55,10 @@ struct CountedItem { count++; } - CountedItem &operator=(const CountedItem &p_other) = default; + void operator=(const CountedItem &p_other) { + id = p_other.id; + count++; + } ~CountedItem() { CRASH_COND(destroyed); |