mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-10-23 21:40:54 +08:00
Fix previous patch.
This commit is contained in:
@@ -27,6 +27,10 @@ Elements unpack(Args... args) {
|
|||||||
|
|
||||||
// Make |container| able to take any number of arguments.
|
// Make |container| able to take any number of arguments.
|
||||||
#define TAKE_ANY_ARGS(container) \
|
#define TAKE_ANY_ARGS(container) \
|
||||||
|
inline Element container(Element child) { \
|
||||||
|
return container(unpack(std::move(child))); \
|
||||||
|
} \
|
||||||
|
\
|
||||||
template <class... Args> \
|
template <class... Args> \
|
||||||
inline Element container(Args... children) { \
|
inline Element container(Args... children) { \
|
||||||
return container(unpack(std::forward<Args>(children)...)); \
|
return container(unpack(std::forward<Args>(children)...)); \
|
||||||
|
Reference in New Issue
Block a user