asio-tr2 icon indicating copy to clipboard operation
asio-tr2 copied to clipboard

Strongly consider removing basic_resolver_query and just have more overloads of resolve/async_resolve

Open chriskohlhoff opened this issue 10 years ago • 2 comments

chriskohlhoff avatar Feb 27 '15 13:02 chriskohlhoff

Applied in 16bb905a247318bb9a2af75bc98189c2d14bdf41.

chriskohlhoff avatar Apr 12 '15 00:04 chriskohlhoff

Pre-Lenexa Summary

[internet.resolver]

Even though it multiplies the number of overloads required, I like this change. It makes the mapping from resolve/async_resolve to getaddrinfo() clearer.

However, to avoid a further doubling in the number of overloads, unlike basic_resolver_query the new resolve and async_resolve functions do not provide separate overloads for the "passive" case.

This wording was included in revision 5. An implementation can be found on the master branch of Asio's GitHub repository.

chriskohlhoff avatar May 04 '15 09:05 chriskohlhoff