Skip to content

Commit 0f692fe

Browse files
committed
Cleaning up warnings related to cpp-netlib code.
1 parent 12b57f9 commit 0f692fe

File tree

18 files changed

+28
-20
lines changed

18 files changed

+28
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace boost { namespace network { namespace http {
1414

1515
template <class Tag>
16-
class basic_request;
16+
struct basic_request;
1717

1818
template <class Tag>
1919
struct basic_response;

boost/network/protocol/http/impl/request.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace boost { namespace network { namespace http {
4242
{};
4343

4444
template <class Tag>
45-
class basic_request : public request_base<Tag>::type
45+
struct basic_request : public request_base<Tag>::type
4646
{
4747

4848
mutable boost::network::uri::http::uri uri_;

boost/network/protocol/http/message/async_message.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ namespace boost { namespace network { namespace http {
2424

2525
async_message()
2626
: status_message_(),
27-
status_(),
2827
version_(),
2928
source_(),
3029
destination_(),
30+
status_(),
3131
headers_(),
3232
body_()
3333
{}
3434

3535
async_message(async_message const & other)
3636
: status_message_(other.status_message_),
37-
status_(other.status_),
3837
version_(other.version_),
3938
source_(other.source_),
4039
destination_(other.destination_),
40+
status_(other.status_),
4141
headers_(other.headers_),
4242
body_(other.body_)
4343
{}
@@ -129,11 +129,12 @@ namespace boost { namespace network { namespace http {
129129
private:
130130

131131
mutable boost::shared_future<string_type> status_message_,
132-
version_, source_, destination_, body_;
132+
version_, source_, destination_;
133133
mutable boost::shared_future<boost::uint16_t> status_;
134134
mutable boost::shared_future<headers_container_type> headers_;
135135
mutable headers_container_type added_headers;
136136
mutable std::set<string_type> removed_headers;
137+
mutable boost::shared_future<string_type> body_;
137138
};
138139

139140
template <class Tag>

boost/network/protocol/http/message/modifiers/uri.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace boost { namespace network { namespace http {
1414

1515
template <class Tag>
16-
class basic_request;
16+
struct basic_request;
1717

1818
template <class Tag, class T>
1919
void uri(basic_request<Tag> & request, T const & value) {

boost/network/protocol/http/message/wrappers/anchor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace boost { namespace network { namespace http {
1414

1515
template <class Tag>
16-
class basic_request;
16+
struct basic_request;
1717

1818
namespace impl {
1919
template <class Tag>

boost/network/protocol/http/message/wrappers/body.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ namespace boost { namespace network { namespace http {
1616
struct basic_response;
1717

1818
template <class Tag>
19-
class basic_request;
19+
struct basic_request;
2020

2121
namespace impl {
2222

2323
template <class Message>
2424
struct body_wrapper {
2525
typedef typename string<typename Message::tag>::type string_type;
2626
Message const & message_;
27-
body_wrapper(Message const & message)
27+
explicit body_wrapper(Message const & message)
2828
: message_(message) {}
2929
body_wrapper(body_wrapper const & other)
3030
: message_(other.message_) {}

boost/network/protocol/http/message/wrappers/destination.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace boost { namespace network { namespace http {
1616
struct basic_response;
1717

1818
template <class Tag>
19-
class basic_request;
19+
struct basic_request;
2020

2121
namespace impl {
2222

boost/network/protocol/http/message/wrappers/headers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace boost { namespace network { namespace http {
1919
};
2020

2121
template <class Tag>
22-
class basic_request;
22+
struct basic_request;
2323

2424
template <class Tag>
2525
struct basic_response;

boost/network/protocol/http/message/wrappers/host.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace boost { namespace network { namespace http {
1414

1515
template <class Tag>
16-
class basic_request;
16+
struct basic_request;
1717

1818
namespace impl {
1919

boost/network/protocol/http/message/wrappers/path.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace boost { namespace network { namespace http {
1414

1515
template <class Tag>
16-
class basic_request;
16+
struct basic_request;
1717

1818
namespace impl {
1919

0 commit comments

Comments
 (0)