sarray: add assignment operator for completeness in test

This commit is contained in:
Danny Robson 2017-08-24 17:53:46 +10:00
parent 8f6af0f837
commit e9ef2ae316

View File

@ -19,6 +19,12 @@ struct counter {
counter (rhs.var)
{ ; }
counter& operator= (const counter &rhs)
{
var = rhs.var;
return *this;
}
~counter ()
{ --var; }