Remove use of deprecated behavior involving copy members

*  If any of the destructor, copy assignment or copy constructor
   are user-declared, both copy members should be user-declared,
   otherwise the compiler-generation of them is deprecated.
This commit is contained in:
Howard Hinnant
2017-09-05 15:23:47 -04:00
committed by seelabs
parent 16acba1636
commit 4e6c8d8b35
15 changed files with 56 additions and 11 deletions

View File

@@ -112,6 +112,8 @@ public:
getCounter ().increment ();
}
CountedObject& operator=(CountedObject const&) = default;
~CountedObject ()
{
getCounter ().decrement ();