File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 25
25
#define __ZMQ_ADDON_HPP_INCLUDED__
26
26
27
27
#include < zmq.hpp>
28
+
28
29
#include < deque>
29
30
#include < iomanip>
30
31
#include < sstream>
@@ -328,7 +329,7 @@ class multipart_t
328
329
{
329
330
return &m_parts[index];
330
331
}
331
-
332
+
332
333
// Get a string copy of a specific message part
333
334
std::string peekstr (size_t index) const
334
335
{
@@ -582,10 +583,15 @@ class multipart_t
582
583
// Disable implicit copying (moving is more efficient)
583
584
multipart_t (const multipart_t & other) ZMQ_DELETED_FUNCTION;
584
585
void operator =(const multipart_t & other) ZMQ_DELETED_FUNCTION;
585
- };
586
+ }; // class multipart_t
586
587
587
- #endif
588
+ #endif // ZMQ_HAS_RVALUE_REFS
588
589
590
+ inline std::ostream& operator <<(std::ostream& os, const multipart_t & msg)
591
+ {
592
+ return os << msg.str ();
589
593
}
590
594
591
- #endif
595
+ } // namespace zmq
596
+
597
+ #endif // __ZMQ_ADDON_HPP_INCLUDED__
You can’t perform that action at this time.
0 commit comments