diff options
Diffstat (limited to 'src/alert.h')
-rw-r--r-- | src/alert.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/alert.h b/src/alert.h index d8254ba2cb..4a8736d60b 100644 --- a/src/alert.h +++ b/src/alert.h @@ -46,8 +46,10 @@ public: std::string strStatusBar; std::string strReserved; - IMPLEMENT_SERIALIZE - ( + IMPLEMENT_SERIALIZE; + + template <typename Stream, typename Operation> + inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { READWRITE(this->nVersion); nVersion = this->nVersion; READWRITE(nRelayUntil); @@ -63,7 +65,7 @@ public: READWRITE(LIMITED_STRING(strComment, 65536)); READWRITE(LIMITED_STRING(strStatusBar, 256)); READWRITE(LIMITED_STRING(strReserved, 256)); - ) + } void SetNull(); @@ -82,11 +84,13 @@ public: SetNull(); } - IMPLEMENT_SERIALIZE - ( + IMPLEMENT_SERIALIZE; + + template <typename Stream, typename Operation> + inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { READWRITE(vchMsg); READWRITE(vchSig); - ) + } void SetNull(); bool IsNull() const; |