Adding Simple Objest test. Fixes some bugs

This commit is contained in:
IlushaShurupov 2023-07-31 20:16:05 +03:00
parent 64e1f78739
commit 2c8e1470d1
10 changed files with 74 additions and 15 deletions

View file

@ -48,7 +48,7 @@ namespace tp {
if constexpr (HasFunc::template Write<Type>::value) {
val.archiveWrite(*this);
} else {
writeBytes((const int1*) &val, sizeof(val));
writeBytes((const int1*) &val, sizeof(Type));
}
}
@ -60,7 +60,7 @@ namespace tp {
if constexpr (HasFunc::template Read<Type>::value) {
val.archiveRead(*this);
} else {
readBytes((int1*) &val, sizeof(val));
readBytes((int1*) &val, sizeof(Type));
}
}