raw.hpp: Add pack() override for shared_ptr<T>
This commit is contained in:
parent
d74eee8110
commit
7b6431f20e
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue