From 7124b323a2539979e0e540a5412f97d94b1da6d3 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 5 Aug 2019 10:23:08 -0400 Subject: [PATCH] Avoid explicit template arguments in std::make_pair --- include/deal.II/fe/fe_system.h | 3 +-- source/particles/particle_handler.cc | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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); -- 2.39.5