Boost logo

Boost :

Subject: Re: [boost] [serialization] boost/serialization/path.hpp
From: Johan Råde (rade_at_[hidden])
Date: 2008-09-23 01:32:20

Let's keep it simple, and use the default traits.

Robert, can I commit the following to the trunk?

--Johan Råde



// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once

#include <boost/config.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/serialization/level.hpp>

namespace boost { namespace serialization {

template<class Archive, class String, class Traits>
void serialize(Archive& ar, boost::filesystem::basic_path<String, Traits>& p,
                const unsigned int version)
     String s;
         s = p.string();
     ar & boost::serialization::make_nvp("string", s);
         p = s;



Boost list run by bdawes at, gregod at, cpdaniel at, john at