summaryrefslogtreecommitdiff
path: root/src/system.hh.in
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-30 20:50:57 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-31 00:09:57 -0400
commit2149a8e773cb8bf84aa803ee12373b4861d03714 (patch)
treed73c7bcde5320125c659a4703cfc8edd074b9c13 /src/system.hh.in
parent63aa8992a81dfaececa4a9b38ba8daf29b57912e (diff)
downloadfork-ledger-2149a8e773cb8bf84aa803ee12373b4861d03714.tar.gz
fork-ledger-2149a8e773cb8bf84aa803ee12373b4861d03714.tar.bz2
fork-ledger-2149a8e773cb8bf84aa803ee12373b4861d03714.zip
Create a --cache option, for using a binary cache
Diffstat (limited to 'src/system.hh.in')
-rw-r--r--src/system.hh.in14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index 8495600e..4a7dc55f 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -189,20 +189,14 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/date_time/posix_time/time_serialize.hpp>
#include <boost/date_time/gregorian/greg_serialize.hpp>
-BOOST_CLASS_IMPLEMENTATION(boost::filesystem::path, boost::serialization::primitive_type)
-#ifndef BOOST_NO_STD_WSTRING
-BOOST_CLASS_IMPLEMENTATION(boost::filesystem::wpath, boost::serialization::primitive_type)
-#endif
-
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)
+template <class Archive>
+void serialize(Archive& ar, boost::filesystem::path& p, const unsigned int)
{
- String s;
- if (Archive::is_saving::value)
+ std::string s;
+ if (Archive::is_saving::value)
s = p.string();
ar & s;