-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport upsteam patch for beast core.
The beast module fails to build with clang16+/ gcc13+, it was fixed in boostorg/beast@72c2eeb See more in GitHub issue: boostorg/beast#2648 (comment) While here, sync OS versions checks with ports to apply llvm usage
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
devel/boost-libs/files/patch-boost_beast_ssl_ssl__stream.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 72c2eeb3980ed0dc530de9241e25b247517de018 Mon Sep 17 00:00:00 2001 | ||
From: Klemens Morgenstern <klemens.d.morgenstern@gmail.com> | ||
Date: Fri, 12 May 2023 22:40:31 +0800 | ||
Subject: [PATCH] ssl_stream doesn't use BOOST_BEAST_ASYNC_TPARAM1 due to clang | ||
errors. | ||
Closes #2661 | ||
--- | ||
boost/beast/ssl/ssl_stream.hpp | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
diff --git boost/beast/ssl/ssl_stream.hpp boost/beast/ssl/ssl_stream.hpp | ||
index 7c4183a525..452320b722 100644 | ||
--- boost/beast/ssl/ssl_stream.hpp | ||
+++ boost/beast/ssl/ssl_stream.hpp | ||
@@ -673,7 +673,7 @@ class ssl_stream | ||
ssl_stream<SyncStream>& stream, | ||
boost::system::error_code& ec); | ||
- template<class AsyncStream, BOOST_BEAST_ASYNC_TPARAM1 TeardownHandler> | ||
+ template<class AsyncStream, typename TeardownHandler> | ||
friend | ||
void | ||
async_teardown( | ||
@@ -697,7 +697,7 @@ teardown( | ||
} | ||
template<class AsyncStream, | ||
- BOOST_BEAST_ASYNC_TPARAM1 TeardownHandler = net::default_completion_token_t<beast::executor_type<AsyncStream>>> | ||
+ typename TeardownHandler = net::default_completion_token_t<beast::executor_type<AsyncStream>>> | ||
void | ||
async_teardown( | ||
boost::beast::role_type role, |