From 6083fdfe197b4fc1d0107c9d838842bbde12ca92 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 17 Aug 2023 14:25:18 -0600 Subject: [PATCH] Be explicit about types. --- source/grid/tria_description.cc | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/source/grid/tria_description.cc b/source/grid/tria_description.cc index f386a3a2a3..1a1410074d 100644 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@ -268,21 +268,24 @@ namespace TriangulationDescription { std::sort(this->coarse_cell_vertices.begin(), this->coarse_cell_vertices.end(), - [](const auto &a, const auto &b) { + [](const std::pair> &a, + const std::pair> &b) { return a.first < b.first; }); this->coarse_cell_vertices.erase( - std::unique(this->coarse_cell_vertices.begin(), - this->coarse_cell_vertices.end(), - [](const auto &a, const auto &b) { - if (a.first == b.first) - { - Assert(a.second.distance(b.second) < 10e-8, - ExcInternalError()); - return true; - } - return false; - }), + std::unique( + this->coarse_cell_vertices.begin(), + this->coarse_cell_vertices.end(), + [](const std::pair> &a, + const std::pair> &b) { + if (a.first == b.first) + { + Assert(a.second.distance(b.second) < 10e-8, + ExcInternalError()); + return true; + } + return false; + }), this->coarse_cell_vertices.end()); } -- 2.39.5