diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-07-02 23:29:34 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:29:19 +0100 |
commit | 1e8d37e7d8aab09966f898cb0ad72b62db8f3720 (patch) | |
tree | dbd8c5bcb3bc3b8476c29f158c17f4d778179160 /src | |
parent | ringct: optimization/cleanup of hash functions (diff) | |
download | monero-1e8d37e7d8aab09966f898cb0ad72b62db8f3720.tar.xz |
serialization: add override for serializing bool
Diffstat (limited to 'src')
-rw-r--r-- | src/serialization/serialization.h | 6 |
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__ |