File tree 2 files changed +18
-0
lines changed
protocol/http/message/wrappers
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,18 @@ namespace boost { namespace network {
77
77
return boost::make_iterator_range (wrapper_base::_message.body ());
78
78
}
79
79
};
80
+
81
+ template <class Tag >
82
+ inline std::ostream & operator <<(std::ostream & os, body_wrapper<Tag> const & body) {
83
+ os << static_cast <typename body_wrapper<Tag>::string_type>(body);
84
+ return os;
85
+ }
86
+
87
+ template <class Tag >
88
+ inline std::ostream & operator <<(std::ostream & os, body_wrapper_const<Tag> const & body) {
89
+ os << static_cast <typename body_wrapper_const<Tag>::string_type>(body);
90
+ return os;
91
+ }
80
92
81
93
} // namespace impl
82
94
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ namespace boost { namespace network { namespace http {
39
39
return boost::make_iterator_range (message_.body ());
40
40
}
41
41
};
42
+
43
+ template <class Message >
44
+ inline std::ostream & operator <<(std::ostream & os, body_wrapper<Message> const & body) {
45
+ os << static_cast <typename body_wrapper<Message>::string_type>(body);
46
+ return os;
47
+ }
42
48
43
49
} // namespace impl
44
50
You can’t perform that action at this time.
0 commit comments