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;