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.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to