2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-14 12:52:17 +00:00
Files
mysql/test/integration/network_functions/network_functions_impl.cpp
Richard Hodges 3c420b8683 Added support for use_awaitable
Co-authored-by: ruben <rubenperez038@gmail.com>
Co-authored-by: Alex Hodges <alexander.hodges11@live.co.uk>
2020-06-02 12:11:48 +01:00

37 lines
1.3 KiB
C++

//
// Copyright (c) 2019-2020 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "network_functions_impl.hpp"
#include <boost/asio/use_awaitable.hpp> // for BOOST_ASIO_HAS_CO_AWAIT
template <typename Stream>
std::vector<boost::mysql::test::network_functions<Stream>*>
boost::mysql::test::make_all_network_functions()
{
return {
sync_errc_functions<Stream>(),
sync_exc_functions<Stream>(),
async_callback_errinfo_functions<Stream>(),
async_callback_noerrinfo_functions<Stream>(),
async_coroutine_errinfo_functions<Stream>(),
async_coroutine_noerrinfo_functions<Stream>(),
async_future_functions<Stream>(),
#ifdef BOOST_ASIO_HAS_CO_AWAIT
async_coroutinecpp20_errinfo_functions<Stream>(),
async_coroutinecpp20_noerrinfo_functions<Stream>()
#endif
};
}
template std::vector<boost::mysql::test::network_functions<boost::asio::ip::tcp::socket>*>
boost::mysql::test::make_all_network_functions();
#ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS
template std::vector<boost::mysql::test::network_functions<boost::asio::local::stream_protocol::socket>*>
boost::mysql::test::make_all_network_functions();
#endif