From ea85f79384c3550ecbb168ba591ae62fb75fac01 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 8 Oct 2017 12:19:14 +0800 Subject: [PATCH] Regex: add elided braces to fix compilation on older gcc --- src/regex_impl.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 27f6d0e31..5a2944001 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -198,7 +198,7 @@ private: } 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) new (&saves->pos[i]) Iterator{copy ? pos[i] : Iterator{}}; m_saves.push_back(saves);