12#ifndef __cxz_cereal_header_cc_h__
13#define __cxz_cereal_header_cc_h__
21 template <
class Archive>
24 CXZ_ASSERT(version == 1u,
"format version = " << version <<
" not supported");
25 ar(cereal::make_nvp(
"version",
h.version));
26 ar(cereal::make_nvp(
"commit",
h.commit));
27 ar(cereal::make_nvp(
"content",
static_cast<SizeT>(
h.content)));
30 template <
class Archive>
33 CXZ_ASSERT(version == 1u,
"format version = " << version <<
" not supported");
34 ar(cereal::make_nvp(
"version",
h.version));
35 ar(cereal::make_nvp(
"commit",
h.commit));
37 ar(cereal::make_nvp(
"content",
hc));
#define CXZ_ASSERT(statement, errmsg)
void load(Archive &ar, Header &h, const std::uint32_t version)
void save(Archive &ar, const Header &h, const std::uint32_t version)
Sptr< Range > rangeCast(const RangePtr r)