Moved majority over to flint2 and updated sol2

This commit is contained in:
2020-05-06 22:32:30 +02:00
parent 748b9c76ef
commit 3b49c00df0
9 changed files with 188 additions and 44 deletions

View File

@@ -3,8 +3,8 @@
#pragma once
#include "ecs.h"
#include "iohelper/write.h"
#include "iohelper/read.h"
#include "io/write.h"
#include "io/read.h"
#include <iostream>
@@ -20,7 +20,7 @@ namespace ecs::serial {
template <typename T, typename M, typename... Args>
void serialize_member(std::ostream& os, T* t, M T::*m, Args... args) {
iohelper::write<M>(os, t->*m);
io::write<M>(os, t->*m);
serialize_member(os, t, args...);
}
@@ -32,7 +32,7 @@ namespace ecs::serial {
template <typename T, typename M, typename... Args>
void deserialize_member(std::istream& is, T* t, M T::*m, Args... args) {
t->*m = iohelper::read<M>(is);
t->*m = io::read<M>(is);
deserialize_member(is, t, args...);
}