serialize.cc example doesn't seem to work with cereal #116

This commit is contained in:
greg
2021-11-09 21:32:08 -05:00
parent 28bba43492
commit 07b740bd99
3 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -1576,7 +1576,7 @@ public:
}
}
#ifndef PHMAP_NON_DETERMINISTIC
#if !defined(PHMAP_NON_DETERMINISTIC) && !defined(PHMAP_DISABLE_DUMP)
template<typename OutputArchive>
bool dump(OutputArchive&) const;
@@ -3366,7 +3366,7 @@ public:
return HashElement{hash_ref()}(key);
}
#ifndef PHMAP_NON_DETERMINISTIC
#if !defined(PHMAP_NON_DETERMINISTIC) && !defined(PHMAP_DISABLE_DUMP)
template<typename OutputArchive>
bool dump(OutputArchive& ar) const;
+5
View File
@@ -42,6 +42,8 @@ struct IsTriviallyCopyable<std::pair<T1, T2>> {
namespace priv {
#if !defined(PHMAP_NON_DETERMINISTIC) && !defined(PHMAP_DISABLE_DUMP)
// ------------------------------------------------------------------------
// dump/load for raw_hash_set
// ------------------------------------------------------------------------
@@ -166,6 +168,9 @@ bool parallel_hash_set<N, RefSet, Mtx_, Policy, Hash, Eq, Alloc>::load(InputArch
}
return true;
}
#endif // !defined(PHMAP_NON_DETERMINISTIC) && !defined(PHMAP_DISABLE_DUMP)
} // namespace priv