Remove some shawowed variable warnings.

This commit is contained in:
Markus Blatt committed 2021-09-13 12:08:13 +02:00
1 parent bc1bc90504
commit e6c8f6985c
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -1631,10 +1631,10 @@ updateSummaryRegionValues(const Inplace& inplace,
// support the RPR__xxx summary keywords.
{
auto get_vector = [&inplace]
(const auto& node,
const Inplace::Phase phase)
(const auto& node_,
const Inplace::Phase phase_)
{
return inplace.get_vector(node.fip_region(), phase);
return inplace.get_vector(node_.fip_region(), phase_);
};
for (const auto& phase : Inplace::phases()) {
+2 -2
View File
@@ -168,7 +168,7 @@ public:
m_packSize += Mpi::packSize(d, m_comm);
};
auto pack = [&](auto& d) {
auto packer = [&](auto& d) {
Mpi::pack(d, m_buffer, m_position, m_comm);
};
@@ -177,7 +177,7 @@ public:
std::visit( [&] (auto& arg) { pack_size(arg); }, data);
} else if (m_op == Operation::PACK) {
Mpi::pack(data.index(), m_buffer, m_position, m_comm);
std::visit([&](auto& arg) { pack(arg); }, data);
std::visit([&](auto& arg) { packer(arg); }, data);
} else if (m_op == Operation::UNPACK) {
size_t index;
std::variant<T0,T1>& mutable_data = const_cast<std::variant<T0,T1>&>(data);