16 Apr
2010
16 Apr
'10
11:21 p.m.
Hi all.
Just started using Boost, and these three lines (which compile in another
project) fail here:
// Get a list of endpoints corresponding to the server name.
tcp::resolver theResolver(boost::asio::io_service);
tcp::resolver::query query("10.10.10.10", "http");
tcp::resolver::iterator endpoint_iterator = theResolver.resolve(query);
The compiler gripes thus:
error: request for member 'resolve' in 'theResolver', which is of non-class
type 'boost::asio::ip::basic_resolver