From 0d9bb94db5dfa2a1825c096f3907cd384095667d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korina=20=C5=A0imi=C4=8Devi=C4=87?= Date: Tue, 24 Sep 2024 12:41:28 +0200 Subject: [PATCH] Forward declare asio::ssl::stream to avoid OpenSSL dependancy Summary: related to T13767, #14 Reviewers: ivica Reviewed By: ivica Subscribers: iljazovic, miljen Differential Revision: https://repo.mireo.local/D31524 --- include/async_mqtt5/detail/rebind_executor.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/async_mqtt5/detail/rebind_executor.hpp b/include/async_mqtt5/detail/rebind_executor.hpp index 9210120..7886077 100644 --- a/include/async_mqtt5/detail/rebind_executor.hpp +++ b/include/async_mqtt5/detail/rebind_executor.hpp @@ -8,10 +8,16 @@ #ifndef ASYNC_MQTT5_REBIND_EXECUTOR_HPP #define ASYNC_MQTT5_REBIND_EXECUTOR_HPP -#include - #include +namespace boost::asio::ssl { + +// forward declare to preserve optional OpenSSL dependency +template +class stream; + +} // end namespace boost::asio::ssl + namespace async_mqtt5::detail { namespace asio = boost::asio;