8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

added missing operator= to ObjectsArray

This commit is contained in:
alexpeshkoff 2006-05-18 14:15:38 +00:00
parent 928d127a3c
commit d49440889c

View File

@ -252,6 +252,25 @@ namespace Firebird
}
inherited::clear();
}
ObjectsArray<T, A>& operator =(const ObjectsArray<T, A>& L)
{
while (count > L.count)
{
delete inherited::pop();
}
for (size_t i = 0; i < L.count; i++)
{
if (i < count)
{
(*this)[i] = L[i];
}
else
{
add(L[i]);
}
}
return *this;
}
};
// Template to convert object value to index directly