summaryrefslogtreecommitdiff
path: root/src/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.hpp')
-rw-r--r--src/util.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.hpp b/src/util.hpp
index 0ed260c..dcdc654 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -5,11 +5,11 @@
namespace WebStat {
template<typename... T>
auto
- visitSum(auto && visitor, const std::tuple<T...> & values)
+ visit(auto && visitor, const std::tuple<T...> & values)
{
- return std::apply(
+ std::apply(
[&](auto &&... value) {
- return (visitor(value) + ...);
+ (visitor(value), ...);
},
values);
}