Remove unnecessary assignment operator for test key

This commit is contained in:
LeonineKing1199
2021-11-23 12:04:00 -08:00
parent fd0cab2ab8
commit bc9eca70d0

View File

@ -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_;