From: Daniel Arndt Date: Mon, 5 Aug 2019 14:23:08 +0000 (-0400) Subject: Avoid explicit template arguments in std::make_pair X-Git-Tag: v9.2.0-rc1~1320^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7124b323a2539979e0e540a5412f97d94b1da6d3;p=dealii.git Avoid explicit template arguments in std::make_pair --- diff --git a/include/deal.II/fe/fe_system.h b/include/deal.II/fe/fe_system.h index 9b59fba0a5..dbbc0dfb63 100644 --- a/include/deal.II/fe/fe_system.h +++ b/include/deal.II/fe/fe_system.h @@ -1263,8 +1263,7 @@ namespace internal std::pair>, unsigned int> promote_to_fe_pair(const FiniteElement &fe) { - return std::make_pair>, - unsigned int>(std::move(fe.clone()), 1u); + return std::make_pair(std::move(fe.clone()), 1u); } diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index b4c041378b..98a9f046fa 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -234,7 +234,7 @@ namespace Particles const typename Triangulation::active_cell_iterator &cell) { const internal::LevelInd level_index = - std::make_pair(cell->level(), cell->index()); + std::make_pair(cell->level(), cell->index()); if (cell->is_ghost()) { @@ -410,7 +410,7 @@ namespace Particles const { const internal::LevelInd found_cell = - std::make_pair(cell->level(), cell->index()); + std::make_pair(cell->level(), cell->index()); if (cell->is_locally_owned()) return particles.count(found_cell);