|
Boost Users : |
Subject: [Boost-users] Compiler's telling me a Boost class isn't a class.
From: G S (stokestack_at_[hidden])
Date: 2010-04-16 19:21:58
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<boost::asio::ip::tcp,
boost::asio::ip::resolver_service<boost::asio::ip::tcp> >
()(boost::asio::io_service)'
"using boost::asio::ip::tcp;" appears in an earlier included file.
I don't see why this would work elsewhere and not here. Anybody have a
guess as to what the problem is? Thanks!
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net