mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 14:17:46 +00:00
serialization: add override for serializing bool
This commit is contained in:
parent
dbb5f2d6a3
commit
1e8d37e7d8
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue