Skip to content

Commit 9f5d3ff

Browse files
Add MSVC macros to silence DLL-interface warnings
1 parent cf94389 commit 9f5d3ff

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

include/boost/http_proto/server/route_handler.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ struct acceptor_config
3030
bool is_admin;
3131
};
3232

33+
BOOST_HTTP_PROTO_MSVC_WARNING_POP
34+
3335
//-----------------------------------------------
3436

37+
BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
38+
BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
39+
3540
/** Parameters object for HTTP route handlers
3641
*/
3742
struct BOOST_HTTP_PROTO_DECL

include/boost/http_proto/server/router_types.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ class any_router;
292292
template<class>
293293
class basic_router;
294294

295+
BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
296+
BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
297+
295298
/** Base class for request objects
296299
297300
This is a required public base for any `Request`
@@ -334,6 +337,9 @@ class BOOST_HTTP_PROTO_DECL route_params_base
334337
bool strict = false;
335338
};
336339

340+
341+
BOOST_HTTP_PROTO_MSVC_WARNING_POP
342+
337343
} // http_proto
338344
} // boost
339345

0 commit comments

Comments
 (0)