mirror of
https://github.com/monero-project/monero.git
synced 2025-12-21 23:00:49 -08:00
serialization: add override for serializing bool
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user