collection_resolver progress

This commit is contained in:
Sascha Kühl
2026-01-28 16:09:54 +01:00
parent 6205ae81c9
commit 602b77e67b
31 changed files with 122 additions and 79 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
#include "matador/utils/access.hpp"
#include "matador/object/object_ptr.hpp"
#include "matador/object/collection.hpp"
#include <string>
#include <vector>
@@ -25,7 +26,7 @@ struct author {
std::string date_of_birth;
unsigned short year_of_birth{};
bool distinguished{false};
std::vector<object::object_ptr<book> > books;
object::collection<object::object_ptr<book> > books;
template<typename Operator>
void process(Operator &op) {
+2 -1
View File
@@ -2,6 +2,7 @@
#define DEPARTMENT_EMPLOYEE_HPP
#include "matador/object/object_ptr.hpp"
#include "matador/object/collection.hpp"
#include <string>
#include <vector>
@@ -16,7 +17,7 @@ struct department {
: id(id), name(std::move(name)) {}
unsigned int id{};
std::string name;
std::vector<object::object_ptr<employee>> employees{};
object::collection<object::object_ptr<employee>> employees{};
// object::object_ptr<employee> manager;
template<typename Operator>