any_connection.ipp 723 B

12345678910111213141516171819202122232425
  1. //
  2. // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_IMPL_ANY_CONNECTION_IPP
  8. #define BOOST_MYSQL_IMPL_ANY_CONNECTION_IPP
  9. #pragma once
  10. #include <boost/mysql/any_connection.hpp>
  11. #include <boost/mysql/impl/internal/variant_stream.hpp>
  12. std::unique_ptr<boost::mysql::detail::any_stream> boost::mysql::any_connection::create_stream(
  13. asio::any_io_executor ex,
  14. asio::ssl::context* ctx
  15. )
  16. {
  17. return std::unique_ptr<boost::mysql::detail::any_stream>(new detail::variant_stream(std::move(ex), ctx));
  18. }
  19. #endif