From: Oleg M. <ole...@gm...> - 2011-01-21 01:24:19
|
On 21.01.2011 06:41, Jeff Graham wrote: > Hello, > > I downloaded both version 0.8 and git source from today. > > The hello world server compiles and runs fine. The hello world client > does not compile due to the following error: > > hello_world_client.cpp:38: error: no match for ‘operator<<’ in > ‘std::cout << boost::network::body(const T&) [with T = > boost::network::http::basic_response<boost::network::http::tags::http_default_8bit_udp_resolve>]()’ > This line is: > > std::cout << boost::network::body(response) << std::endl; > It seems that body(response) resolves to body_directive instead of boost::network::impl::body_wrapper. And even if it resolved correctly we need to add explicit operator<<(ostream&, impl::body_wrapper const&) to make that code work. To be honest it seems quite overcomplicated to me. The working line: std::cout << boost::network::impl::body_wrapper_const<http::client::tag_type(response).operator std::string() << std::endl; -- Best regards, Oleg Malashenko. |