Merge branch 'master' of https://github.com/davidchappelle/msgpack-c into davidchappelle-master

This commit is contained in:
Takatoshi Kondo 2015-05-27 21:18:33 +09:00
commit b225f15f29
2 changed files with 6 additions and 4 deletions

View File

@ -386,15 +386,17 @@ inline msgpack::object::implicit_type object::convert() const
} }
template <typename T> template <typename T>
inline void object::convert(T& v) const inline T& object::convert(T& v) const
{ {
msgpack::operator>>(*this, v); msgpack::operator>>(*this, v);
return v;
} }
template <typename T> template <typename T>
inline void object::convert(T* v) const inline T* object::convert(T* v) const
{ {
convert(*v); convert(*v);
return v;
} }
template <typename T> template <typename T>

View File

@ -106,9 +106,9 @@ struct object {
T as() const; T as() const;
template <typename T> template <typename T>
void convert(T& v) const; T& convert(T& v) const;
template <typename T> template <typename T>
void convert(T* v) const; T* convert(T* v) const;
object(); object();