1#ifndef ROSE_serialize_path_H
2#define ROSE_serialize_path_H
3#include <featureTests.h>
5#include <boost/filesystem/path.hpp>
15#ifdef ROSE_HAVE_CEREAL
19template<
class Archive>
21CEREAL_SAVE_FUNCTION_NAME(Archive &archive,
const boost::filesystem::path &x) {
22 std::string s = x.string();
23 archive(cereal::make_nvp(
"path", s));
26template<
class Archive>
28CEREAL_LOAD_FUNCTION_NAME(Archive &archive, boost::filesystem::path &x) {
30 archive(cereal::make_nvp(
"path", s));