From 21a9cb6866afe3354bee60d852ebffc7ef3a8355 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 Aug 2025 13:06:07 +0100 Subject: Insert new entities and log entry in a transaction If no new entities are required, no transaction is created. --- src/util.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util.hpp') 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 auto - visitSum(auto && visitor, const std::tuple & values) + visit(auto && visitor, const std::tuple & values) { - return std::apply( + std::apply( [&](auto &&... value) { - return (visitor(value) + ...); + (visitor(value), ...); }, values); } -- cgit v1.2.3