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()); Vector<MetaType> meta(this->size());
auto i = mRange->begin(); auto i = mRange->begin();
SizeT j = 0; for(SizeT j = 0; j != meta.size(); ++j){
for(const auto& p: mParts){ meta[j] = *(i = mParts[j]);
meta[j++] = *(i = p);
} }
return URangeFactory<MetaType>( meta ).create(); return URangeFactory<MetaType>( meta ).create();
} }