sarray: add assignment operator for completeness in test
This commit is contained in:
parent
8f6af0f837
commit
e9ef2ae316
@ -19,6 +19,12 @@ struct counter {
|
|||||||
counter (rhs.var)
|
counter (rhs.var)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
|
counter& operator= (const counter &rhs)
|
||||||
|
{
|
||||||
|
var = rhs.var;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
~counter ()
|
~counter ()
|
||||||
{ --var; }
|
{ --var; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user