From 932d2668925864b5c24e138dc72a6bca72682ece Mon Sep 17 00:00:00 2001 From: ybbat <26819064+ybbat@users.noreply.github.com> Date: Thu, 15 Oct 2026 09:03:45 +0100 Subject: [PATCH] rename tag parameter in operator| to fix MSVC error --- include/boost/ut.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/ut.hpp b/include/boost/ut.hpp index 5634de7d..d22ad812 100644 --- a/include/boost/ut.hpp +++ b/include/boost/ut.hpp @@ -2739,13 +2739,13 @@ template requires std::ranges::range [[nodiscard]] constexpr auto operator|(const F& f, const T& t) { return [f, t](std::string_view type, std::string_view name, - const std::vector& tag = {}) { + const std::vector& tags = {}) { for (int counter = 1; const auto& arg : t) { detail::on(events::test{ .type = type, .name = std::string{name} + " (" + format_test_parameter(arg, counter) + ")", - .tag = tag, + .tag = tags, .location = {}, .arg = arg, .run = f}); @@ -2769,14 +2769,14 @@ template class T, class... Ts> }; return [f, t, unique_name](std::string_view type, std::string_view name, - const std::vector& tag = {}) { + const std::vector& tags = {}) { int counter = 1; apply( [=, &counter](const auto&... args) { (detail::on(events::test{ .type = type, .name = unique_name.template operator()(name, args, counter), - .tag = tag, + .tag = tags, .location = {}, .arg = args, .run = f}),