Skip to content

Commit 94777b8

Browse files
Export route_params base and task to silence MSVC C4251
1 parent 9126ea0 commit 94777b8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/boost/http_proto/server/router_types.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <boost/system/error_code.hpp>
1818
#include <exception>
1919
#include <string>
20+
#include <boost/http_proto/detail/config.hpp>
2021
#include <type_traits>
2122

2223
namespace boost {
@@ -296,7 +297,7 @@ class basic_router;
296297
This is a required public base for any `Request`
297298
type used with @ref basic_router.
298299
*/
299-
class route_params_base
300+
class BOOST_HTTP_PROTO_DECL route_params_base
300301
{
301302
public:
302303
/** The mount path of the current router

src/server/route_handler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ route_params::
2020
{
2121
}
2222

23+
route_params::task::
24+
~task() = default;
25+
2326
route_params&
2427
route_params::
2528
status(

0 commit comments

Comments
 (0)