Replace boost thread with std thread for queue; refine cmake files.

This commit is contained in:
Chunting Gu
2018-08-04 11:32:29 +08:00
parent ab781a691f
commit 1b7e1378b4
7 changed files with 318 additions and 258 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ void Test(boost::asio::io_context& io_context) {
webcc::HttpAsyncClientPtr client(new webcc::HttpAsyncClient(io_context));
// Response handler.
auto handler = [](std::shared_ptr<webcc::HttpResponse> response,
webcc::Error error,
auto handler = [](webcc::HttpResponsePtr response, webcc::Error error,
bool timed_out) {
if (error == webcc::kNoError) {
std::cout << response->content() << std::endl;