ArrayMem from BaseArray ctor

This commit is contained in:
Joachim Schoeberl 2021-04-09 21:30:21 +02:00
parent 190e22b06d
commit 2d9e32ba70

View File

@ -1196,6 +1196,14 @@ namespace ngcore
data[cnt++] = val;
}
template <typename T2>
ArrayMem (const BaseArrayObject<T2> & a2)
: ArrayMem (a2.Size())
{
for (size_t i : ngcore::Range(size))
data[i] = a2[i];
}
ArrayMem & operator= (const T & val)
{