diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-07-07 15:48:13 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-02 11:05:27 -0800 |
commit | ca33451535dc29f64d37c49af8b22142d7716d0d (patch) | |
tree | a9a7595ae18527643bdd5a434cb8ce3d6ebc66cf /src/addrdb.h | |
parent | 3f8dbcd655479ce2e564a8b17139aca19888ca79 (diff) | |
download | bitcoin-ca33451535dc29f64d37c49af8b22142d7716d0d.tar.xz |
Introduce new serialization macros without casts
This new approach uses a static method which takes the object as
a argument. This has the advantage that its constness can be a
template parameter, allowing a single implementation that sees the
object as const for serialization and non-const for deserialization,
without casts.
More boilerplate is included in the new macro as well.
Diffstat (limited to 'src/addrdb.h')
0 files changed, 0 insertions, 0 deletions