File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
http/src/network/http/v2/client/connection Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ namespace network {
43
43
*/
44
44
typedef resolver::iterator resolver_iterator;
45
45
46
+ /* *
47
+ * \typedef resolve_callback
48
+ */
49
+ typedef std::function<void (const boost::system::error_code &,
50
+ resolver_iterator)> resolve_callback;
51
+
46
52
/* *
47
53
* \brief Constructor.
48
54
*/
@@ -66,8 +72,7 @@ namespace network {
66
72
* \param port The port number.
67
73
* \param callback A callback handler.
68
74
*/
69
- template <class Handler >
70
- void async_resolve (const std::string &host, std::uint16_t port, Handler &&handler) {
75
+ void async_resolve (const std::string &host, std::uint16_t port, resolve_callback handler) {
71
76
if (cache_resolved_) {
72
77
endpoint_cache::iterator it = endpoint_cache_.find (boost::to_lower_copy (host));
73
78
if (it != endpoint_cache_.end ()) {
You can’t perform that action at this time.
0 commit comments