From a5dc62f2557f8eb07da9a485e2ce7d083c4ec558 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 23:50:27 +0000 Subject: fixed network prefix serialization --- networkPrefix.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/networkPrefix.h b/networkPrefix.h index d5316bd..c4b589c 100644 --- a/networkPrefix.h +++ b/networkPrefix.h @@ -33,6 +33,8 @@ #include "threadUtils.hpp" #include "datatypes.h" +#include +#include #include "networkAddress.h" @@ -47,6 +49,14 @@ public: private: uint8_t length_; + friend class boost::serialization::access; + template + void serialize(Archive & ar, const unsigned int version) + { + ar & length_; + ar & boost::serialization::base_object(*this); + }; + }; #endif -- cgit v1.2.3