Skip to content

Commit 7ffd528

Browse files
committed
Remove creation_type_tag - make the ctor public
The class is internal, so it's fine.
1 parent 8e4a9c8 commit 7ffd528

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Release/src/http/client/http_linux.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace web { namespace http
5757
public:
5858
static std::shared_ptr<request_context> create_request_context(std::shared_ptr<_http_client_communicator> &client, http_request &request)
5959
{
60-
return std::make_shared<linux_request_context>(client, request, creation_type_tag{});
60+
return std::make_shared<linux_request_context>(client, request);
6161
}
6262

6363
void report_error(const utility::string_t &message, boost::system::error_code ec, httpclient_errorcode_context context = httpclient_errorcode_context::none)
@@ -162,11 +162,8 @@ namespace web { namespace http
162162
}
163163
}
164164

165-
private:
166-
// Allow make_shared to create linux_request_context internally, but not to anyone else outside the class
167-
class creation_type_tag {};
168165
public:
169-
linux_request_context(std::shared_ptr<_http_client_communicator> &client, http_request request, creation_type_tag)
166+
linux_request_context(std::shared_ptr<_http_client_communicator> &client, http_request request)
170167
: request_context(client, request)
171168
, m_known_size(0)
172169
, m_needChunked(false)

0 commit comments

Comments
 (0)