fix prange derive segfault

This commit is contained in:
Christian Zimmermann 2024-05-18 22:07:06 +02:00
parent d8e814c0d7
commit defc8d98e0

View file

@ -367,9 +367,8 @@ namespace CNORXZ
{
Vector<MetaType> meta(this->size());
auto i = mRange->begin();
SizeT j = 0;
for(const auto& p: mParts){
meta[j++] = *(i = p);
for(SizeT j = 0; j != meta.size(); ++j){
meta[j] = *(i = mParts[j]);
}
return URangeFactory<MetaType>( meta ).create();
}