Skip to content

Commit f6144b1

Browse files
committed
Fixed build error with boost 1.86
1 parent e5e2f80 commit f6144b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (DEFINED ENV{RESTC_CPP_VERSION})
55
endif()
66

77
if (NOT DEFINED RESTC_CPP_VERSION)
8-
set(RESTC_CPP_VERSION 0.101.0)
8+
set(RESTC_CPP_VERSION 0.101.1)
99
endif()
1010

1111
if(NOT DEFINED RESTC_BOOST_VERSION)

include/restc-cpp/restc-cpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class RestClient {
421421
prom->set_exception(std::current_exception());
422422
}
423423
done_handler.reset();
424-
});
424+
}, boost::asio::detached);
425425

426426
return future;
427427
}

src/RestClientImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class RestClientImpl final : public RestClient {
342342
void Process(const prc_fn_t& fn) override {
343343
boost::asio::spawn(*io_service_,
344344
bind(&RestClientImpl::ProcessInWorker, this,
345-
placeholders::_1, fn, nullptr));
345+
placeholders::_1, fn, nullptr), boost::asio::detached);
346346
}
347347

348348
future< void > ProcessWithPromise(const prc_fn_t& fn) override {
@@ -351,7 +351,7 @@ class RestClientImpl final : public RestClient {
351351

352352
boost::asio::spawn(*io_service_,
353353
bind(&RestClientImpl::ProcessInWorker, this,
354-
placeholders::_1, fn, promise));
354+
placeholders::_1, fn, promise), boost::asio::detached);
355355

356356
return future;
357357
}

0 commit comments

Comments
 (0)