mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Convert everything except wallet/qt to new serialization
This commit is contained in:
parent
2b1f85e8c5
commit
4eb5643e35
17 changed files with 70 additions and 212 deletions
|
|
@ -20,9 +20,7 @@
|
|||
struct nontrivial_t {
|
||||
int x;
|
||||
nontrivial_t() :x(-1) {}
|
||||
ADD_SERIALIZE_METHODS
|
||||
template <typename Stream, typename Operation>
|
||||
inline void SerializationOp(Stream& s, Operation ser_action) {READWRITE(x);}
|
||||
SERIALIZE_METHODS(nontrivial_t, obj) { READWRITE(obj.x); }
|
||||
};
|
||||
static_assert(!IS_TRIVIALLY_CONSTRUCTIBLE<nontrivial_t>::value,
|
||||
"expected nontrivial_t to not be trivially constructible");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue