summaryrefslogtreecommitdiff
path: root/src/system.hh.in
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-29 15:35:20 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-29 15:35:20 -0500
commit08f65eeadc288ecde4b8fb281e477958c8ae7cd5 (patch)
treed16320cdc4a6b9b5c475dc83106368a81362ca3e /src/system.hh.in
parentef7cab0830637828334fae0a9ad37d20f8e75176 (diff)
downloadfork-ledger-08f65eeadc288ecde4b8fb281e477958c8ae7cd5.tar.gz
fork-ledger-08f65eeadc288ecde4b8fb281e477958c8ae7cd5.tar.bz2
fork-ledger-08f65eeadc288ecde4b8fb281e477958c8ae7cd5.zip
Allow serialization to be enabled again
Diffstat (limited to 'src/system.hh.in')
-rw-r--r--src/system.hh.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index a38deb1f..552a591a 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -246,12 +246,19 @@ void serialize(Archive& ar, boost::intrusive_ptr<T>& ptr, const unsigned int)
}
}
-template <class Archive, class T>
-void serialize(Archive&, boost::function<T>&, const unsigned int)
-{
+template <class Archive>
+void serialize(Archive&, boost::any&, const unsigned int) {
+ // jww (2012-03-29): Should we really ignore any fields entirely?
+ // These occur inside value_t::storage_t::data's variant.
}
template <class Archive>
+void serialize(Archive&, boost::blank&, const unsigned int) {}
+
+template <class Archive, class T>
+void serialize(Archive&, boost::function<T>&, const unsigned int) {}
+
+template <class Archive>
void serialize(Archive& ar, istream_pos_type& pos, const unsigned int)
{
ar & make_binary_object(&pos, sizeof(istream_pos_type));