Fix compilation on gcc #7666

This commit is contained in:
Thomas Krijnen
2026-02-13 10:17:28 +01:00
parent 7b4889d2ec
commit 7978f1fb08
+2 -2
View File
@@ -1239,6 +1239,7 @@ void fuse_corridor_halves_with_input(Arrangement_2& arr, Graph2D<K>& G, SegmentL
}
class timer {
public:
class entry {
public:
entry(std::map<std::string, std::chrono::high_resolution_clock::time_point>::const_iterator start_it)
@@ -1253,9 +1254,8 @@ class timer {
std::map<std::string, std::chrono::high_resolution_clock::time_point>::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: