mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fix compilation on gcc #7666
This commit is contained in:
@@ -1239,6 +1239,7 @@ void fuse_corridor_halves_with_input(Arrangement_2& arr, Graph2D<K>& G, SegmentL
|
|||||||
}
|
}
|
||||||
|
|
||||||
class timer {
|
class timer {
|
||||||
|
public:
|
||||||
class entry {
|
class entry {
|
||||||
public:
|
public:
|
||||||
entry(std::map<std::string, std::chrono::high_resolution_clock::time_point>::const_iterator start_it)
|
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;
|
std::map<std::string, std::chrono::high_resolution_clock::time_point>::const_iterator start_it;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
|
||||||
entry start(const std::string& name) {
|
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:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user