mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-01 08:31:28 +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>
|
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>
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user