collection_resolver progress
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user