Merge pull request #113 from pmarques/master

Compiler error due to ambiguous methods resolution
This commit is contained in:
Peter Thorson
2012-06-28 04:36:40 -07:00

View File

@@ -296,7 +296,8 @@ void server<endpoint>::listen(const std::string &host, const std::string &servic
if (endpoint_iterator == end) {
throw std::invalid_argument("Can't resolve host/service to listen");
}
listen(*endpoint_iterator,n);
const boost::asio::ip::tcp::endpoint &ep = *endpoint_iterator;
listen(ep,n);
}
template <class endpoint>