Remove static constructor from the MmapPool

This commit is contained in:
2017-01-05 07:35:29 +01:00
parent e27d0fe58c
commit 4271c8583e
2 changed files with 43 additions and 33 deletions

View File

@ -661,11 +661,19 @@ struct Vector(T)
body
{
const T* end = vector + length_;
for (T* a = r.begin, b = r.end; b != end; ++a, ++b)
T* a = r.begin;
for (T* b = r.end; b != end; ++a, ++b)
{
*a = *b;
}
length = length_ - r.length;
for (; a != end; ++a)
{
static if (hasElaborateDestructor!T)
{
destroy(*a);
}
--length_;
}
return r;
}