Skip to content

Commit 078542e

Browse files
committed
replacing boost::enable_shared_from_this by its std counterpart
1 parent 0dc7308 commit 078542e

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-
struct connection_handler : boost::enable_shared_from_this<connection_handler> {
104+
struct connection_handler : std::enable_shared_from_this<connection_handler> {
105105
explicit connection_handler(file_cache& cache) : file_cache_(cache) {}
106106

107107
void operator()(std::string const& 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
struct http_1_1_async_connection;
4848

4949
struct http_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
class sync_server_connection
46-
: public boost::enable_shared_from_this<sync_server_connection> {
46+
: public std::enable_shared_from_this<sync_server_connection> {
4747
public:
4848
sync_server_connection(boost::asio::io_service& service,
4949
std::function<void(request const&, response&)> handler)

0 commit comments

Comments
 (0)