Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/mysql/impl/any_connection.ipp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_IMPL_ANY_CONNECTION_IPP
0009 #define BOOST_MYSQL_IMPL_ANY_CONNECTION_IPP
0010 
0011 #pragma once
0012 
0013 #include <boost/mysql/any_connection.hpp>
0014 
0015 #include <boost/mysql/detail/engine.hpp>
0016 #include <boost/mysql/detail/engine_impl.hpp>
0017 
0018 #include <boost/mysql/impl/internal/variant_stream.hpp>
0019 
0020 std::unique_ptr<boost::mysql::detail::engine> boost::mysql::any_connection::create_engine(
0021     asio::any_io_executor ex,
0022     asio::ssl::context* ctx
0023 )
0024 {
0025     return std::unique_ptr<detail::engine>(new detail::engine_impl<detail::variant_stream>(std::move(ex), ctx)
0026     );
0027 }
0028 
0029 #endif