From 3df5d980d0486b422321670c01c75ca10e216882 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Thu, 28 Dec 2023 19:49:45 +0000 Subject: [PATCH] Specialize asio::associator for bind_wrapper and bind_front_wrapper --- .../beast/_experimental/test/impl/stream.hpp | 1 + include/boost/beast/core/async_base.hpp | 1 + .../boost/beast/core/detail/bind_handler.hpp | 153 +++++------------- test/beast/websocket/close.cpp | 2 +- 4 files changed, 40 insertions(+), 117 deletions(-) diff --git a/include/boost/beast/_experimental/test/impl/stream.hpp b/include/boost/beast/_experimental/test/impl/stream.hpp index 0971a5b0..b102c164 100644 --- a/include/boost/beast/_experimental/test/impl/stream.hpp +++ b/include/boost/beast/_experimental/test/impl/stream.hpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/include/boost/beast/core/async_base.hpp b/include/boost/beast/core/async_base.hpp index d8fe12ec..4f43a5c6 100644 --- a/include/boost/beast/core/async_base.hpp +++ b/include/boost/beast/core/async_base.hpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/include/boost/beast/core/detail/bind_handler.hpp b/include/boost/beast/core/detail/bind_handler.hpp index 4b1d188d..5215ef20 100644 --- a/include/boost/beast/core/detail/bind_handler.hpp +++ b/include/boost/beast/core/detail/bind_handler.hpp @@ -12,9 +12,7 @@ #include #include -#include -#include -#include +#include #include #include #include @@ -42,14 +40,9 @@ class bind_wrapper Handler h_; args_type args_; - template - friend struct net::associated_executor; - - template - friend struct net::associated_allocator; - - template - friend struct net::associated_cancellation_slot; + template