mirror of
https://github.com/USCiLab/cereal.git
synced 2025-07-22 04:22:01 +02:00
23 lines
610 B
C++
Executable File
23 lines
610 B
C++
Executable File
#pragma once
|
|
#include "base.hpp"
|
|
class Derived : public Base
|
|
{
|
|
public:
|
|
virtual ~Derived() {}
|
|
|
|
private:
|
|
friend class cereal::access;
|
|
template <class Archive>
|
|
void serialize(Archive & ar, std::uint32_t const)
|
|
{
|
|
ar(cereal::base_class<Base>(this));
|
|
}
|
|
};
|
|
|
|
extern template DECLSPECIFIER void Derived::serialize<cereal::XMLOutputArchive>
|
|
( cereal::XMLOutputArchive & ar, std::uint32_t const version );
|
|
extern template DECLSPECIFIER void Derived::serialize<cereal::XMLInputArchive>
|
|
( cereal::XMLInputArchive & ar, std::uint32_t const version );
|
|
|
|
CEREAL_REGISTER_TYPE(Derived)
|