File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1010#ifndef BOOST_HTTP_PROTO_HPP
1111#define BOOST_HTTP_PROTO_HPP
1212
13+ #if defined(BOOST_MSVC)
14+ # pragma warning(push)
15+ # pragma warning(disable:4251)
16+ #endif
17+
1318#include < boost/http_proto/error.hpp>
1419#include < boost/http_proto/field.hpp>
1520#include < boost/http_proto/fields.hpp>
5257#include < boost/http_proto/server/route_handler.hpp>
5358#include < boost/http_proto/server/router_types.hpp>
5459
60+ #if defined(BOOST_MSVC)
61+ # pragma warning(pop)
62+ #endif
63+
5564#endif
Original file line number Diff line number Diff line change @@ -33,18 +33,6 @@ namespace http_proto {
3333# define BOOST_HTTP_PROTO_DECL
3434# endif
3535
36- // MSVC-only helpers to locally suppress benign DLL-interface warnings
37- # if defined(BOOST_MSVC)
38- # define BOOST_HTTP_PROTO_MSVC_WARNING_PUSH __pragma (warning(push))
39- # define BOOST_HTTP_PROTO_MSVC_WARNING_POP __pragma (warning(pop))
40- # define BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275 \
41- __pragma (warning(disable:4251 4275 ))
42- # else
43- # define BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
44- # define BOOST_HTTP_PROTO_MSVC_WARNING_POP
45- # define BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
46- # endif
47-
4836# if !defined(BOOST_HTTP_PROTO_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_HTTP_PROTO_NO_LIB)
4937# define BOOST_LIB_NAME boost_http_proto
5038# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_HTTP_PROTO_DYN_LINK)
Original file line number Diff line number Diff line change 2424
2525#include < cstdint>
2626
27+ #if defined(BOOST_MSVC)
28+ # pragma warning(push)
29+ # pragma warning(disable:4251)
30+ #endif
31+
2732namespace boost {
2833namespace http_proto {
2934
@@ -44,8 +49,6 @@ struct empty
4449 kind param;
4550};
4651
47- BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
48- BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
4952
5053struct BOOST_HTTP_PROTO_DECL header
5154{
@@ -221,7 +224,10 @@ struct BOOST_HTTP_PROTO_DECL header
221224 system::error_code&) noexcept ;
222225};
223226
224- BOOST_HTTP_PROTO_MSVC_WARNING_POP
227+ #if defined(BOOST_MSVC)
228+ # pragma warning(pop)
229+ #endif
230+
225231
226232} // detail
227233} // http_proto
Original file line number Diff line number Diff line change 1919
2020#include < iosfwd>
2121
22+ #if defined(BOOST_MSVC)
23+ # pragma warning(push)
24+ # pragma warning(disable:4251)
25+ #endif
26+
2227namespace boost {
2328namespace http_proto {
2429
@@ -1398,4 +1403,8 @@ class BOOST_HTTP_PROTO_DECL fields_base
13981403
13991404#include < boost/http_proto/impl/fields_base.hpp>
14001405
1406+ #if defined(BOOST_MSVC)
1407+ # pragma warning(pop)
1408+ #endif
1409+
14011410#endif
Original file line number Diff line number Diff line change 1515#include < boost/http_proto/fields_base.hpp>
1616#include < boost/core/detail/string_view.hpp>
1717
18+ #if defined(BOOST_MSVC)
19+ # pragma warning(push)
20+ # pragma warning(disable:4251)
21+ #endif
22+
1823namespace boost {
1924namespace http_proto {
2025
@@ -187,6 +192,10 @@ class BOOST_HTTP_PROTO_DECL message_base
187192 set_keep_alive (bool value);
188193};
189194
195+ #if defined(BOOST_MSVC)
196+ # pragma warning(pop)
197+ #endif
198+
190199} // http_proto
191200} // boost
192201
Original file line number Diff line number Diff line change 1818#include < boost/http_proto/header_limits.hpp>
1919#include < boost/http_proto/sink.hpp>
2020
21+ #if defined(BOOST_MSVC)
22+ # pragma warning(push)
23+ # pragma warning(disable:4251)
24+ #endif
2125#include < boost/buffers/dynamic_buffer.hpp>
2226#include < boost/buffers/buffer_pair.hpp>
2327#include < boost/core/span.hpp>
@@ -778,4 +782,8 @@ install_parser_service(
778782
779783#include < boost/http_proto/impl/parser.hpp>
780784
785+ #if defined(BOOST_MSVC)
786+ # pragma warning(pop)
787+ #endif
788+
781789#endif
Original file line number Diff line number Diff line change 1212
1313#include < boost/http_proto/request_base.hpp>
1414
15+ #if defined(BOOST_MSVC)
16+ # pragma warning(push)
17+ # pragma warning(disable:4251)
18+ #endif
19+
1520namespace boost {
1621namespace http_proto {
1722
@@ -452,6 +457,10 @@ class BOOST_HTTP_PROTO_DECL request
452457 }
453458};
454459
460+ #if defined(BOOST_MSVC)
461+ # pragma warning(pop)
462+ #endif
463+
455464} // http_proto
456465} // boost
457466
Original file line number Diff line number Diff line change 1414#include < boost/http_proto/detail/config.hpp>
1515#include < boost/http_proto/message_base.hpp>
1616
17+ #if defined(BOOST_MSVC)
18+ # pragma warning(push)
19+ # pragma warning(disable:4251)
20+ #endif
21+
1722namespace boost {
1823namespace http_proto {
1924
@@ -298,6 +303,10 @@ class BOOST_HTTP_PROTO_DECL request_base
298303 http_proto::version v);
299304};
300305
306+ #if defined(BOOST_MSVC)
307+ # pragma warning(pop)
308+ #endif
309+
301310} // http_proto
302311} // boost
303312
You can’t perform that action at this time.
0 commit comments