Skip to content

Commit

Permalink
Forward declare asio::ssl::stream to avoid OpenSSL dependancy
Browse files Browse the repository at this point in the history
Summary: related to T13767, #14

Reviewers: ivica

Reviewed By: ivica

Subscribers: iljazovic, miljen

Differential Revision: https://repo.mireo.local/D31524
  • Loading branch information
ksimicevic committed Sep 24, 2024
1 parent 10f75b9 commit 0d9bb94
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/async_mqtt5/detail/rebind_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@
#ifndef ASYNC_MQTT5_REBIND_EXECUTOR_HPP
#define ASYNC_MQTT5_REBIND_EXECUTOR_HPP

#include <boost/asio/ssl/stream.hpp>

#include <boost/beast/websocket/stream.hpp>

namespace boost::asio::ssl {

// forward declare to preserve optional OpenSSL dependency
template <typename Stream>
class stream;

} // end namespace boost::asio::ssl

namespace async_mqtt5::detail {

namespace asio = boost::asio;
Expand Down

0 comments on commit 0d9bb94

Please sign in to comment.