serialization: add override for serializing bool

pull/961/head
moneromooo-monero 8 years ago
parent dbb5f2d6a3
commit 1e8d37e7d8
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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__

Loading…
Cancel
Save