27 #include <boost/make_shared.hpp>
36 using boost::make_shared;
40 using serialization::SerializableBuffer;
41 using serialization::BufferReader;
42 using serialization::BufferWriter;
66 shared_ptr<SerializableBuffer> sb = make_shared<SerializableBuffer>();
72 payload_ = shared_ptr<Serializable>();
81 throw std::length_error(
"Deserialization size less than header size");
86 throw std::length_error(
"Packet length different than given to deserialize");
90 payload_ = make_shared<SerializableBuffer>();
95 payload_ = shared_ptr<Serializable>();