Skip to content

Commit 392d58d

Browse files
committed
dll-linkage false positive and build fixes
1 parent 82810c1 commit 392d58d

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

include/boost/http/server/flat_router.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
namespace boost {
2626
namespace http {
2727

28+
#ifdef BOOST_MSVC
29+
#pragma warning(push)
30+
#pragma warning(disable: 4251) // shared_ptr needs dll-interface
31+
#endif
32+
2833
/** A flattened router optimized for dispatch performance.
2934
3035
`flat_router` is constructed from a @ref router by flattening
@@ -87,6 +92,10 @@ class BOOST_HTTP_DECL
8792
route_params_base& p) const;
8893
};
8994

95+
#ifdef BOOST_MSVC
96+
#pragma warning(pop)
97+
#endif
98+
9099
} // http
91100
} // boost
92101

test/limits/Jamfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
import testing ;
1212

13+
# Windows CNG library for bcrypt random number generation.
14+
lib bcrypt_sys : : <name>bcrypt ;
15+
1316
project
1417
: requirements
1518
$(c11-requires)
@@ -28,4 +31,6 @@ run limits.cpp /boost/http//http_sources
2831
<define>BOOST_HTTP_NO_LIB
2932
<define>BOOST_HTTP_STATIC_LINK
3033
<link>static
34+
<target-os>windows:<library>bcrypt_sys
35+
<target-os>darwin:<linkflags>"-framework Security"
3136
;

0 commit comments

Comments
 (0)