From bc9eca70d02b552bb4b7b58947f4909c1803efb9 Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Tue, 23 Nov 2021 12:04:00 -0800 Subject: [PATCH] Remove unnecessary assignment operator for test `key` --- test/unordered/transparent_tests.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/unordered/transparent_tests.cpp b/test/unordered/transparent_tests.cpp index 13779bd7..58367791 100644 --- a/test/unordered/transparent_tests.cpp +++ b/test/unordered/transparent_tests.cpp @@ -20,13 +20,6 @@ struct key key(int x) : x_(x) { ++count_; } key(key const& k) : x_(k.x_) { ++count_; } - - key& operator=(key const& k) - { - x_ = k.x_; - ++count_; - return *this; - } }; int key::count_;