Fix "-Wdeprecated-copy" warnings

This commit is contained in:
Ion Gaztañaga
2020-08-09 23:21:46 +02:00
parent 06417de498
commit 974e8e641a
8 changed files with 118 additions and 83 deletions
+4
View File
@@ -82,6 +82,10 @@ bool test_smart_ref_type()
class recursive_vector
{
public:
recursive_vector (const recursive_vector &x)
: vector_(x.vector_)
{}
recursive_vector & operator=(const recursive_vector &x)
{ this->vector_ = x.vector_; return *this; }