diff --git a/tests/manual/layoutbuilder/v2/lb.h b/tests/manual/layoutbuilder/v2/lb.h index 99c87af564b..cdccc858701 100644 --- a/tests/manual/layoutbuilder/v2/lb.h +++ b/tests/manual/layoutbuilder/v2/lb.h @@ -43,13 +43,12 @@ namespace Layouting { class NestId {}; -template +template class IdAndArg { public: - IdAndArg(const T1 &id, const T2 &arg) : id(id), arg(arg) {} - const T1 id; - const T2 arg; // FIXME: Could be const &, but this would currently break bindTo(). + IdAndArg(Id, const Arg &arg) : arg(arg) {} + const Arg arg; // FIXME: Could be const &, but this would currently break bindTo(). }; // The main dispatcher @@ -70,7 +69,7 @@ public: template BuilderItem(IdAndArg && idarg) { - apply = [&idarg](X *x) { doit(x, idarg.id, idarg.arg); }; + apply = [&idarg](X *x) { doit(x, Id{}, idarg.arg); }; } std::function apply;