Skip to content

Commit

Permalink
Fixed build error with boost 1.86
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Sep 23, 2024
1 parent c688196 commit 1e840e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (DEFINED ENV{RESTC_CPP_VERSION})
endif()

if (NOT DEFINED RESTC_CPP_VERSION)
set(RESTC_CPP_VERSION 0.101.0)
set(RESTC_CPP_VERSION 0.101.1)
endif()

if(NOT DEFINED RESTC_BOOST_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion include/restc-cpp/restc-cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class RestClient {
prom->set_exception(std::current_exception());
}
done_handler.reset();
});
}, boost::asio::detached);

return future;
}
Expand Down
4 changes: 2 additions & 2 deletions src/RestClientImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class RestClientImpl final : public RestClient {
void Process(const prc_fn_t& fn) override {
boost::asio::spawn(*io_service_,
bind(&RestClientImpl::ProcessInWorker, this,
placeholders::_1, fn, nullptr));
placeholders::_1, fn, nullptr), boost::asio::detached);
}

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

boost::asio::spawn(*io_service_,
bind(&RestClientImpl::ProcessInWorker, this,
placeholders::_1, fn, promise));
placeholders::_1, fn, promise), boost::asio::detached);

return future;
}
Expand Down

0 comments on commit 1e840e8

Please sign in to comment.