From 7844f15debee4e3eaa9e6cca9b17ba62727fff03 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Fri, 1 Oct 2021 17:47:07 +0200 Subject: [PATCH] Add explicit std::plus to accumulate --- atrip.org | 4 +++- include/atrip/Tuples.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/atrip.org b/atrip.org index e5529fd..9ddedbd 100644 --- a/atrip.org +++ b/atrip.org @@ -1142,6 +1142,7 @@ namespace atrip { #include #include +#include #include #include @@ -1190,7 +1191,8 @@ namespace atrip { == ( std::accumulate(n_tuples_per_rank.begin(), n_tuples_per_rank.end(), - 0UL) + 0UL, + std::plus()) + nExtraInvalid )); #endif diff --git a/include/atrip/Tuples.hpp b/include/atrip/Tuples.hpp index 83f6237..090eb9b 100644 --- a/include/atrip/Tuples.hpp +++ b/include/atrip/Tuples.hpp @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -51,7 +52,8 @@ namespace atrip { == ( std::accumulate(n_tuples_per_rank.begin(), n_tuples_per_rank.end(), - 0UL) + 0UL, + std::plus()) + nExtraInvalid )); #endif