mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Remove auto from lambda parameter declaration
This commit is contained in:
@@ -135,7 +135,7 @@ void fix_spaceboundaries(IfcParse::IfcFile& f, bool no_progress, bool quiet, boo
|
|||||||
|
|
||||||
const auto& coords = itelem->second;
|
const auto& coords = itelem->second;
|
||||||
std::vector<double> distances;
|
std::vector<double> distances;
|
||||||
std::transform(coords.begin(), coords.end(), std::back_inserter(distances), [&tree](const auto& p) {
|
std::transform(coords.begin(), coords.end(), std::back_inserter(distances), [&tree](const Kernel_::Point_3& p) {
|
||||||
return std::sqrt(CGAL::to_double(tree.squared_distance(p)));
|
return std::sqrt(CGAL::to_double(tree.squared_distance(p)));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -573,7 +573,7 @@ struct intersection_validator {
|
|||||||
template <typename Fn>
|
template <typename Fn>
|
||||||
void operator()(Fn fn) {
|
void operator()(Fn fn) {
|
||||||
std::clock_t box_overlap_begin = std::clock();
|
std::clock_t box_overlap_begin = std::clock();
|
||||||
CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), [](auto& x, auto& y) {});
|
CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), [](Box& x, Box& y) {});
|
||||||
std::clock_t box_overlap_end = std::clock();
|
std::clock_t box_overlap_end = std::clock();
|
||||||
total_box_time += (box_overlap_end - box_overlap_begin) / (double) CLOCKS_PER_SEC;
|
total_box_time += (box_overlap_end - box_overlap_begin) / (double) CLOCKS_PER_SEC;
|
||||||
CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), fn);
|
CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), fn);
|
||||||
|
|||||||
Reference in New Issue
Block a user