Fixes for MSVC 2022 issues.

Closes #2653.
This commit is contained in:
Klemens Morgenstern
2023-03-21 12:07:49 +08:00
committed by Klemens Morgenstern
parent 0e5cf9ff79
commit 42b6387ae4
2 changed files with 3 additions and 2 deletions

View File

@ -102,11 +102,11 @@ class message_generator_test : public beast::unit_test::suite
// only rvalue refs
BOOST_STATIC_ASSERT(
not std::is_constructible<
! std::is_constructible<
message_generator,
message<true, string_body>&>::value);
BOOST_STATIC_ASSERT(
not std::is_constructible<
! std::is_constructible<
message_generator,
message<true, string_body> const&>::value);

View File

@ -386,6 +386,7 @@ public:
net::io_context ioc;
test::stream ts{ioc,
"GET / HTTP/1.1\r\n\r\n"};
ts.close(); // make sure the read completes
BEAST_EXPECT(handler::count() == 0);
multi_buffer b;
request<dynamic_body> m;