Skip to content

Commit d5ec5e3

Browse files
author
Your Name
committed
chore: fix MinGW builds
1 parent 98cf872 commit d5ec5e3

6 files changed

Lines changed: 12 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ jobs:
134134
runs-on: "windows-2022"
135135
b2-toolset: "gcc"
136136
generator: "MinGW Makefiles"
137-
is-latest: false
137+
is-latest: true
138138
is-earliest: true
139-
name: "MinGW"
139+
name: "MinGW (shared)"
140140
shared: true
141-
build-type: "Release"
141+
build-type: "Debug"
142142
build-cmake: true
143143

144144
- compiler: "mingw"
@@ -148,9 +148,9 @@ jobs:
148148
runs-on: "windows-2022"
149149
b2-toolset: "gcc"
150150
generator: "MinGW Makefiles"
151-
is-latest: false
151+
is-latest: true
152152
is-earliest: true
153-
name: "MinGW"
153+
name: "MinGW (static)"
154154
shared: false
155155
build-type: "Release"
156156
build-cmake: true

include/boost/http_proto/server/basic_router.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ class any_router
142142
friend class http_proto::basic_router;
143143
using opt_flags = unsigned int;
144144

145-
struct BOOST_SYMBOL_VISIBLE any_handler
145+
struct BOOST_HTTP_PROTO_DECL any_handler
146146
{
147-
BOOST_HTTP_PROTO_DECL virtual ~any_handler();
147+
virtual ~any_handler() = default;
148148
virtual std::size_t count() const noexcept = 0;
149149
virtual route_result invoke(
150150
basic_request&, basic_response&) const = 0;

include/boost/http_proto/server/route_handler.hpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct Request : basic_request
6363

6464
/** Response object for HTTP route handlers
6565
*/
66-
struct BOOST_SYMBOL_VISIBLE
66+
struct BOOST_HTTP_PROTO_DECL
6767
Response : basic_response
6868
{
6969
/** The HTTP response message
@@ -89,14 +89,14 @@ struct BOOST_SYMBOL_VISIBLE
8989

9090
/** Destructor.
9191
*/
92-
BOOST_HTTP_PROTO_DECL virtual ~Response();
92+
virtual ~Response();
9393

9494
/** Reset the object for a new request.
9595
This clears any state associated with
9696
the previous request, preparing the object
9797
for use with a new request.
9898
*/
99-
BOOST_HTTP_PROTO_DECL void reset();
99+
void reset();
100100

101101
/** Set the status code of the response.
102102
@par Example
@@ -106,11 +106,9 @@ struct BOOST_SYMBOL_VISIBLE
106106
@param code The status code to set.
107107
@return A reference to this response.
108108
*/
109-
BOOST_HTTP_PROTO_DECL
110109
Response&
111110
status(http_proto::status code);
112111

113-
BOOST_HTTP_PROTO_DECL
114112
Response&
115113
set_body(std::string s);
116114

@@ -168,7 +166,6 @@ struct BOOST_SYMBOL_VISIBLE
168166
Subclasses must schedule task_ to be invoked at an unspecified
169167
point in the future.
170168
*/
171-
BOOST_HTTP_PROTO_DECL
172169
virtual void do_post();
173170

174171
std::unique_ptr<task> task_;

include/boost/http_proto/sink.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace http_proto {
3636
@ref source,
3737
@ref parser.
3838
*/
39-
struct BOOST_SYMBOL_VISIBLE
39+
struct BOOST_HTTP_PROTO_DECL
4040
sink
4141
{
4242
/** The results of consuming data.
@@ -188,7 +188,6 @@ struct BOOST_SYMBOL_VISIBLE
188188
@param more `true` if there will be one
189189
or more subsequent calls.
190190
*/
191-
BOOST_HTTP_PROTO_DECL
192191
virtual
193192
results
194193
on_write(

include/boost/http_proto/source.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace http_proto {
3636
@ref sink,
3737
@ref serializer.
3838
*/
39-
struct BOOST_SYMBOL_VISIBLE
39+
struct BOOST_HTTP_PROTO_DECL
4040
source
4141
{
4242
/** The results of producing data.
@@ -191,7 +191,6 @@ struct BOOST_SYMBOL_VISIBLE
191191
indicate failure or that no more
192192
data remains (or both).
193193
*/
194-
BOOST_HTTP_PROTO_DECL
195194
virtual
196195
results
197196
on_read(

src/server/basic_router.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ pattern target path(use) path(get)
8080

8181
//------------------------------------------------
8282

83-
84-
any_router::any_handler::~any_handler() = default;
85-
86-
//------------------------------------------------
87-
8883
/*
8984
static
9085
void

0 commit comments

Comments
 (0)