Regex: add elided braces to fix compilation on older gcc

This commit is contained in:
Maxime Coste 2017-10-08 12:19:14 +08:00
parent bf3b50a543
commit ea85f79384

View File

@ -198,7 +198,7 @@ private:
} }
void* ptr = ::operator new (sizeof(Saves) + (count-1) * sizeof(Iterator)); void* ptr = ::operator new (sizeof(Saves) + (count-1) * sizeof(Iterator));
Saves* saves = new (ptr) Saves{1, copy ? pos[0] : Iterator{}}; Saves* saves = new (ptr) Saves{1, {copy ? pos[0] : Iterator{}}};
for (size_t i = 1; i < count; ++i) for (size_t i = 1; i < count; ++i)
new (&saves->pos[i]) Iterator{copy ? pos[i] : Iterator{}}; new (&saves->pos[i]) Iterator{copy ? pos[i] : Iterator{}};
m_saves.push_back(saves); m_saves.push_back(saves);