From 7978f1fb0887b67a93dc503dd30e73448d62b2c9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 13 Feb 2026 10:17:28 +0100 Subject: [PATCH] Fix compilation on gcc #7666 --- src/svgfill/src/arrange_polygons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/svgfill/src/arrange_polygons.cpp b/src/svgfill/src/arrange_polygons.cpp index 0271d76146..0e77a28886 100644 --- a/src/svgfill/src/arrange_polygons.cpp +++ b/src/svgfill/src/arrange_polygons.cpp @@ -1239,6 +1239,7 @@ void fuse_corridor_halves_with_input(Arrangement_2& arr, Graph2D& G, SegmentL } class timer { + public: class entry { public: entry(std::map::const_iterator start_it) @@ -1253,9 +1254,8 @@ class timer { std::map::const_iterator start_it; }; - public: entry start(const std::string& name) { - return timings_.insert({name, std::chrono::high_resolution_clock::now()}).first; + return entry(timings_.insert({name, std::chrono::high_resolution_clock::now()}).first); } private: