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

Commit1e9ede7

Browse files
committed
Replaced boost::future with std::future.
1 parent77c08ab commit1e9ede7

File tree

30 files changed

+94
-111
lines changed

30 files changed

+94
-111
lines changed

‎boost/network/message/directives/detail/string_value.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9+
#include<future>
910
#include<boost/network/traits/string.hpp>
1011
#include<boost/network/support/is_async.hpp>
1112
#include<boost/network/support/is_sync.hpp>
12-
#include<boost/thread/future.hpp>
1313
#include<boost/type_traits/is_same.hpp>
1414
#include<boost/mpl/if.hpp>
1515
#include<boost/mpl/or.hpp>
@@ -20,7 +20,7 @@ namespace detail {
2020

2121
template<classTag>
2222
structstring_value
23-
: mpl::if_<is_async<Tag>,boost::shared_future<typename string<Tag>::type>,
23+
: mpl::if_<is_async<Tag>,std::shared_future<typename string<Tag>::type>,
2424
typename mpl::if_<
2525
mpl::or_<is_sync<Tag>, is_same<Tag, tags::default_string>,
2626
is_same<Tag, tags::default_wstring> >,

‎boost/network/message/directives/header.hpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include<boost/network/support/is_async.hpp>
1111
#include<boost/network/traits/string.hpp>
1212
#include<boost/utility/enable_if.hpp>
13-
#include<boost/thread/future.hpp>
1413
#include<boost/mpl/if.hpp>
1514
#include<boost/mpl/or.hpp>
1615
#include<boost/variant/apply_visitor.hpp>
@@ -50,7 +49,7 @@ struct header_directive {
5049

5150
template<classMessage>
5251
structdirective_impl
53-
: mpl::if_<is_base_of<tags::pod,typename Message::tag>,
52+
: mpl::if_<std::is_base_of<tags::pod,typename Message::tag>,
5453
pod_directive<Message>, normal_directive<Message> >::type {};
5554

5655
template<classMessage>

‎boost/network/message/modifiers/body.hpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// http://www.boost.org/LICENSE_1_0.txt)
88

99
#include<boost/network/support/pod_or_normal.hpp>
10-
#include<boost/thread/future.hpp>
1110

1211
namespaceboost {
1312
namespacenetwork {

‎boost/network/message/modifiers/clear_headers.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9+
#include<future>
910
#include<boost/mpl/and.hpp>
1011
#include<boost/mpl/not.hpp>
1112
#include<boost/network/support/is_async.hpp>
1213
#include<boost/network/support/is_pod.hpp>
13-
#include<boost/thread/future.hpp>
1414
#include<boost/utility/enable_if.hpp>
1515

1616
namespaceboost {
@@ -34,8 +34,8 @@ template <class Message, class Tag>
3434
inlinetypename enable_if<mpl::and_<mpl::not_<is_pod<Tag> >, is_async<Tag> >,
3535
void>::type
3636
clear_headers(Messageconst &message, Tagconst &) {
37-
boost::promise<typename Message::headers_container_type> header_promise;
38-
boost::shared_future<typename Message::headers_container_type>headers_future(
37+
std::promise<typename Message::headers_container_type> header_promise;
38+
std::shared_future<typename Message::headers_container_type>headers_future(
3939
header_promise.get_future());
4040
message.headers(headers_future);
4141
header_promise.set_value(typenameMessage::headers_container_type());

‎boost/network/message/modifiers/destination.hpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// http://www.boost.org/LICENSE_1_0.txt)
99

1010
#include<boost/network/support/is_async.hpp>
11-
#include<boost/thread/future.hpp>
1211

1312
namespaceboost {
1413
namespacenetwork {

‎boost/network/message/traits/body.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
// (See accompanying file LICENSE_1_0.txt or copy at
99
// http://www.boost.org/LICENSE_1_0.txt)
1010

11+
#include<future>
1112
#include<boost/mpl/if.hpp>
1213
#include<boost/network/support/is_async.hpp>
1314
#include<boost/network/support/is_sync.hpp>
1415
#include<boost/network/tags.hpp>
1516
#include<boost/network/traits/string.hpp>
16-
#include<boost/thread/future.hpp>
1717
#include<boost/type_traits/is_same.hpp>
1818

1919
namespaceboost {
@@ -27,7 +27,7 @@ template <class Message>
2727
structbody
2828
: mpl::if_<
2929
is_async<typename Message::tag>,
30-
shared_future<typename string<typename Message::tag>::type>,
30+
std::shared_future<typename string<typename Message::tag>::type>,
3131
typename mpl::if_<
3232
mpl::or_<is_sync<typename Message::tag>,
3333
is_same<typename Message::tag,

‎boost/network/message/traits/destination.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10+
#include<future>
1011
#include<boost/mpl/if.hpp>
1112
#include<boost/network/support/is_async.hpp>
1213
#include<boost/network/support/is_sync.hpp>
1314
#include<boost/network/tags.hpp>
1415
#include<boost/network/traits/string.hpp>
15-
#include<boost/thread/future.hpp>
1616
#include<boost/type_traits/is_same.hpp>
1717

1818
namespaceboost {
@@ -26,7 +26,7 @@ struct unsupported_tag;
2626
template<classMessage>
2727
structdestination
2828
: mpl::if_<is_async<typename Message::tag>,
29-
shared_future<typename string<typename Message::tag>::type>,
29+
std::shared_future<typename string<typename Message::tag>::type>,
3030
typename mpl::if_<
3131
mpl::or_<is_sync<typename Message::tag>,
3232
is_same<typename Message::tag,

‎boost/network/message/traits/headers.hpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10+
#include<future>
1011
#include<boost/mpl/if.hpp>
1112
#include<boost/mpl/or.hpp>
1213
#include<boost/network/message/directives.hpp>
@@ -27,7 +28,7 @@ template <class Message>
2728
structheader_key
2829
: mpl::if_<
2930
is_async<typename Message::tag>,
30-
boost::shared_future<typename string<typename Message::tag>::type>,
31+
std::shared_future<typename string<typename Message::tag>::type>,
3132
typename mpl::if_<
3233
mpl::or_<is_sync<typename Message::tag>,
3334
is_same<typename Message::tag, tags::default_string>,
@@ -39,7 +40,7 @@ template <class Message>
3940
structheader_value
4041
: mpl::if_<
4142
is_async<typename Message::tag>,
42-
boost::shared_future<typename string<typename Message::tag>::type>,
43+
std::shared_future<typename string<typename Message::tag>::type>,
4344
typename mpl::if_<
4445
mpl::or_<is_sync<typename Message::tag>,
4546
is_same<typename Message::tag, tags::default_string>,

‎boost/network/message/traits/source.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9+
#include<future>
910
#include<boost/mpl/if.hpp>
1011
#include<boost/network/support/is_async.hpp>
1112
#include<boost/network/support/is_sync.hpp>
1213
#include<boost/network/tags.hpp>
1314
#include<boost/network/traits/string.hpp>
14-
#include<boost/thread/future.hpp>
1515
#include<boost/type_traits/is_same.hpp>
1616

1717
namespaceboost {
@@ -24,7 +24,7 @@ struct unsupported_tag;
2424
template<classMessage>
2525
structsource
2626
: mpl::if_<is_async<typename Message::tag>,
27-
shared_future<typename string<typename Message::tag>::type>,
27+
std::shared_future<typename string<typename Message::tag>::type>,
2828
typename mpl::if_<
2929
mpl::or_<is_sync<typename Message::tag>,
3030
is_same<typename Message::tag,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include<boost/asio/io_service.hpp>
1616
#include<boost/algorithm/string/classification.hpp>
1717
#include<boost/algorithm/string/split.hpp>
18-
#include<boost/foreach.hpp>
1918
#include<boost/lexical_cast.hpp>
2019
#include<istream>
2120
#include<map>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp