Added rfl::Tuple (#160)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2024-07-28 15:35:38 +02:00
committed by GitHub
parent d9387e29ef
commit 9c9eceab92
61 changed files with 1300 additions and 566 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
#include "Field.hpp"
#include "Literal.hpp"
#include "apply.hpp"
#include "internal/StringLiteral.hpp"
#include "internal/get_type_name.hpp"
#include "internal/remove_namespaces.hpp"
@@ -23,7 +24,7 @@ struct AddStructName {
const auto add_new_field = [](auto&&... _fields) {
return make_named_tuple(FieldType(LiteralType()), std::move(_fields)...);
};
return std::apply(add_new_field, std::move(_view.fields()));
return rfl::apply(add_new_field, std::move(_view.fields()));
}
};