1#ifndef ROSE_serialize_uuid_H
2#define ROSE_serialize_uuid_H
3#include <featureTests.h>
9#ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
10#include <boost/uuid/uuid_serialize.hpp>
17#ifdef ROSE_HAVE_CEREAL
18#include <boost/uuid/string_generator.hpp>
19#include <boost/uuid/uuid.hpp>
20#include <boost/uuid/uuid_io.hpp>
24template<
class Archive>
26CEREAL_SAVE_FUNCTION_NAME(Archive &archive,
const boost::uuids::uuid &x) {
27 const std::string uuid = boost::uuids::to_string(x);
28 archive(CEREAL_NVP(uuid));
31template<
class Archive>
33CEREAL_LOAD_FUNCTION_NAME(Archive &archive, boost::uuids::uuid &x) {
35 archive(CEREAL_NVP(uuid));
36 x = boost::uuids::string_generator()(uuid);