From 1e8d37e7d8aab09966f898cb0ad72b62db8f3720 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 2 Jul 2016 23:29:34 +0100 Subject: [PATCH] serialization: add override for serializing bool --- src/serialization/serialization.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/serialization/serialization.h b/src/serialization/serialization.h index 8e277a46..177cdf33 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::serialize(ar, v); } +template +inline bool do_serialize(Archive &ar, bool &v) +{ + ar.serialize_blob(&v, sizeof(v)); + return true; +} // Never used in the code base // #ifndef __GNUC__