mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-27 23:10:20 +02:00
Merge branch 'master' of https://github.com/davidchappelle/msgpack-c into davidchappelle-master
This commit is contained in:
commit
b225f15f29
@ -386,15 +386,17 @@ inline msgpack::object::implicit_type object::convert() const
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline void object::convert(T& v) const
|
||||
inline T& object::convert(T& v) const
|
||||
{
|
||||
msgpack::operator>>(*this, v);
|
||||
return v;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline void object::convert(T* v) const
|
||||
inline T* object::convert(T* v) const
|
||||
{
|
||||
convert(*v);
|
||||
return v;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
@ -106,9 +106,9 @@ struct object {
|
||||
T as() const;
|
||||
|
||||
template <typename T>
|
||||
void convert(T& v) const;
|
||||
T& convert(T& v) const;
|
||||
template <typename T>
|
||||
void convert(T* v) const;
|
||||
T* convert(T* v) const;
|
||||
|
||||
object();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user