Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita344712

Browse files
committed
squash: add proper boost.asio defines for supporting clang
1 parentd42f0b3 commita344712

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎CMakeLists.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
9797
elseif (${CMAKE_CXX_COMPILER_ID}MATCHES Clang)
9898
# We want to link in C++11 mode in Clang too, but also set a high enough
9999
# template depth for the template metaprogramming.
100-
set (CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -Wall -ftemplate-depth=256 -std=c++11")
100+
set (CMAKE_CXX_FLAGS
101+
"${CMAKE_CXX_FLAGS} -Wall -ftemplate-depth=256 -std=c++11 -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_ASIO_HAS_STD_ARRAY")
101102
if (${CMAKE_SYSTEM_NAME}MATCHES"Darwin")
102103
# Use libc++ only in OS X.
103104
set (CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -stdlib=libc++")

‎boost/network/protocol/http/client/connection/async_normal.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct http_async_connection
147147
connection_delegate_ptr;
148148

149149
http_async_connection(resolver_type& resolver, resolve_function resolve,
150-
bool follow_redirect,int timeout,
150+
bool follow_redirect,int64_t timeout,
151151
bool remove_chunk_markers,
152152
connection_delegate_ptr delegate)
153153
: timeout_(timeout),
@@ -187,7 +187,7 @@ struct http_async_connection
187187
callback, generator, ec, endpoint_range);
188188
}));
189189
if (timeout_ >0) {
190-
timer_.expires_from_now(boost::chrono::seconds(timeout_));
190+
timer_.expires_from_now(std::chrono::seconds(timeout_));
191191
timer_.async_wait(request_strand_.wrap([=] (boost::system::error_codeconst &ec) {
192192
self->handle_timeout(ec);
193193
}));
@@ -578,7 +578,7 @@ struct http_async_connection
578578
}
579579
}
580580

581-
int timeout_;
581+
int64_t timeout_;
582582
bool remove_chunk_markers_;
583583
boost::asio::steady_timer timer_;
584584
bool is_timedout_;

‎boost/network/protocol/http/server/async_connection.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ struct async_connection
345345
}
346346

347347
private:
348-
typedefboost::array<char, BOOST_NETWORK_HTTP_SERVER_CONNECTION_BUFFER_SIZE>
348+
typedefstd::array<char, BOOST_NETWORK_HTTP_SERVER_CONNECTION_BUFFER_SIZE>
349349
buffer_type;
350350

351351
public:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp