Skip to content

Commit

Permalink
ssl_stream: fix ambiguous async_teardown
Browse files Browse the repository at this point in the history
We are observing the following in openbmc/bmcweb with clang-16.

```
/usr/local/include/boost/beast/websocket/impl/read.hpp:695:17: error: call to 'async_teardown' is ambiguous
```

This was reported in boostorg#2648 and this change was suggested
as a fix.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
  • Loading branch information
williamspatrick committed May 12, 2023
1 parent 42b6387 commit 98f8b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/beast/ssl/ssl_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, class TeardownHandler>
friend
void
async_teardown(
Expand All @@ -697,7 +697,7 @@ teardown(
}

template<class AsyncStream,
BOOST_BEAST_ASYNC_TPARAM1 TeardownHandler = net::default_completion_token_t<beast::executor_type<AsyncStream>>>
class TeardownHandler = net::default_completion_token_t<beast::executor_type<AsyncStream>>>
void
async_teardown(
boost::beast::role_type role,
Expand Down

0 comments on commit 98f8b1f

Please sign in to comment.