Skip to content

Commit 90caa4c

Browse files
Add MSVC macros to silence DLL-interface warnings
1 parent cf94389 commit 90caa4c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/boost/http_proto/server/route_handler.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ struct acceptor_config
3030
bool is_admin;
3131
};
3232

33-
//-----------------------------------------------
33+
BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
34+
BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
3435

3536
/** Parameters object for HTTP route handlers
3637
*/

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)