changed: rename the packer used in test_Serialization to MemPacker

make it a public header so it can be reused elsewhere.
This commit is contained in:
Arne Morten Kvarving
2023-01-30 15:52:05 +01:00
parent 59ae098ff8
commit b138598518
4 changed files with 127 additions and 56 deletions

View File

@@ -140,12 +140,12 @@
#include <opm/output/data/Aquifer.hpp>
#include <opm/output/eclipse/RestartValue.hpp>
#include <opm/common/utility/Serializer.hpp>
#include "SimplePacker.hpp"
#include <opm/common/utility/MemPacker.hpp>
template<class T>
std::tuple<T,int,int> PackUnpack(T& in)
{
Opm::TestUtil::Packer packer;
Opm::Serialization::MemPacker packer;
Opm::Serializer ser(packer);
ser.pack(in);
size_t pos1 = ser.position();