simpler construction

This commit is contained in:
Eric Mertens 2024-12-28 19:38:29 -06:00
parent 8e399f37d0
commit 45f2690a32

View File

@ -53,11 +53,11 @@ auto calibrated(
if (i == 0) { if (i == 0) {
if (x == t) { return true; } if (x == t) { return true; }
} else { } else {
([&](auto const op) { for (auto const op : {ops...}) {
if (auto const u = op(t, x)) { if (auto const u = op(t, x)) {
work.emplace(i - 1, *u); work.emplace(i - 1, *u);
} }
}(ops), ...); }
} }
} }