Closed tzaeschke closed 2 years ago
FilterSphere doesn't compile when used with floating point coordinates:
FilterSphere
PhTreeD<3, int> tree; auto filter1 = FilterSphere({1., 2., 3.}, 1.0, tree.converter());
results in
phtree/common/filter.h:244:36: error: no matching function for call to 'clamp' closest_in_bounds[i] = std::clamp(center_internal_[i], lo, hi); ^~~~~~~~~~
Using clang 11.0.1
FilterSphere
doesn't compile when used with floating point coordinates:results in
Using clang 11.0.1