From 45f2690a32aedd074eb5f13e3ac0ecfdd865ea32 Mon Sep 17 00:00:00 2001 From: Eric Mertens Date: Sat, 28 Dec 2024 19:38:29 -0600 Subject: [PATCH] simpler construction --- 2024/07.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2024/07.cpp b/2024/07.cpp index 474d819..b80dcc3 100644 --- a/2024/07.cpp +++ b/2024/07.cpp @@ -53,11 +53,11 @@ auto calibrated( if (i == 0) { if (x == t) { return true; } } else { - ([&](auto const op) { + for (auto const op : {ops...}) { if (auto const u = op(t, x)) { work.emplace(i - 1, *u); } - }(ops), ...); + } } }