Commit 6ebdb63e authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

AutoObj: overload AutoPtr copy assignment operator

parent 4fe59e92
......@@ -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