Declare copy constructor and assignment operator private or implement it, because the class uses memory allocation.