mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-14 18:10:30 +01:00
C++: operator<< (std::ostream&, const object&): fix missing double support
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@83 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
parent
8be25a7f32
commit
05b63f6c87
@ -41,6 +41,10 @@ std::ostream& operator<< (std::ostream& s, const object o)
|
||||
s << o.via.i64;
|
||||
break;
|
||||
|
||||
case type::DOUBLE:
|
||||
s << o.via.dec;
|
||||
break;
|
||||
|
||||
case type::RAW:
|
||||
(s << '"').write(o.via.ref.ptr, o.via.ref.size) << '"';
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user