aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/serialization.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-07-02 23:29:34 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:29:19 +0100
commit1e8d37e7d8aab09966f898cb0ad72b62db8f3720 (patch)
treedbd8c5bcb3bc3b8476c29f158c17f4d778179160 /src/serialization/serialization.h
parentringct: optimization/cleanup of hash functions (diff)
downloadmonero-1e8d37e7d8aab09966f898cb0ad72b62db8f3720.tar.xz
serialization: add override for serializing bool
Diffstat (limited to '')
-rw-r--r--src/serialization/serialization.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serialization/serialization.h b/src/serialization/serialization.h
index 8e277a46a..177cdf33a 100644
--- a/src/serialization/serialization.h
+++ b/src/serialization/serialization.h
@@ -102,6 +102,12 @@ inline bool do_serialize(Archive &ar, T &v)
{
return ::serializer<Archive, T>::serialize(ar, v);
}
+template <class Archive>
+inline bool do_serialize(Archive &ar, bool &v)
+{
+ ar.serialize_blob(&v, sizeof(v));
+ return true;
+}
// Never used in the code base
// #ifndef __GNUC__