Commit 049aa2d8 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

AutoObj: overload AutoPtr copy assignment operator

parent 1c45d2e6
......@@ -251,7 +251,7 @@ public:
return *this;
}
AutoPtr& operator =(AutoPtr& o)
AutoPtr& operator =(const AutoPtr& o)
{
AutoPtrData *od = o.getData(); // protects against "a = a"
putData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment