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

Commit078542e

Browse files
committed
replacing boost::enable_shared_from_this by its std counterpart
1 parent0dc7308 commit078542e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎contrib/http_examples/http/fileserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct file_cache {
101101

102102
};
103103

104-
structconnection_handler :boost::enable_shared_from_this<connection_handler> {
104+
structconnection_handler :std::enable_shared_from_this<connection_handler> {
105105
explicitconnection_handler(file_cache& cache) : file_cache_(cache) {}
106106

107107
voidoperator()(std::stringconst& path,

‎http/src/network/protocol/http/policies/async_connection.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include<boost/shared_ptr.hpp>
1414
#include<boost/lexical_cast.hpp>
1515
#include<boost/cstdint.hpp>
16-
#include<boost/enable_shared_from_this.hpp>
16+
//#include <boost/enable_shared_from_this.hpp>
1717
#include<boost/tuple/tuple.hpp>
1818
#include<functional>
1919
#include<functional>
@@ -47,7 +47,7 @@ struct simple_async_connection_manager : connection_manager {
4747
structhttp_1_1_async_connection;
4848

4949
structhttp_1_1_async_connection_manager : connection_manager,
50-
enable_shared_from_this<http_1_1_async_connection_manager> {
50+
std::enable_shared_from_this<http_1_1_async_connection_manager> {
5151
http_1_1_async_connection_manager(bool cache_resolved,
5252
bool follow_redirects,
5353
optional<std::string> openssl_certificate,

‎http/src/network/protocol/http/server/connection/sync.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include<utility>
1616
#include<iterator>
17-
#include<boost/enable_shared_from_this.hpp>
17+
//#include <boost/enable_shared_from_this.hpp>
1818
#include<network/constants.hpp>
1919
#include<network/protocol/http/server/request_parser.hpp>
2020
#include<network/protocol/http/request.hpp>
@@ -43,7 +43,7 @@ extern void parse_headers(
4343
#endif
4444

4545
classsync_server_connection
46-
: publicboost::enable_shared_from_this<sync_server_connection> {
46+
: publicstd::enable_shared_from_this<sync_server_connection> {
4747
public:
4848
sync_server_connection(boost::asio::io_service& service,
4949
std::function<void(requestconst&, response&)> handler)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp