raw.hpp: Add pack() override for shared_ptr<T>

This commit is contained in:
theoreticalbts 2016-01-08 11:20:32 -05:00
parent d74eee8110
commit 7b6431f20e

View file

@ -116,6 +116,12 @@ namespace fc {
s.write((const char*)&v.data[0],N*sizeof(T));
}
template<typename Stream, typename T>
inline void pack( Stream& s, const std::shared_ptr<T>& v)
{
pack( s, *v );
}
template<typename Stream, typename T, size_t N>
inline void unpack( Stream& s, fc::array<T,N>& v)
{ try {