diff --git a/include/ftxui/dom/take_any_args.hpp b/include/ftxui/dom/take_any_args.hpp index 99fbd7ee..be34ac24 100644 --- a/include/ftxui/dom/take_any_args.hpp +++ b/include/ftxui/dom/take_any_args.hpp @@ -27,6 +27,10 @@ Elements unpack(Args... args) { // Make |container| able to take any number of arguments. #define TAKE_ANY_ARGS(container) \ + inline Element container(Element child) { \ + return container(unpack(std::move(child))); \ + } \ + \ template \ inline Element container(Args... children) { \ return container(unpack(std::forward(children)...)); \