From: Wolfgang Bangerth Date: Thu, 17 Aug 2023 20:25:18 +0000 (-0600) Subject: Be explicit about types. X-Git-Tag: relicensing~580^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6083fdfe197b4fc1d0107c9d838842bbde12ca92;p=dealii.git Be explicit about types. --- 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()); }