// // Copyright (c) 2019-2024 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) // #ifndef BOOST_MYSQL_DETAIL_SOCKET_STREAM_HPP #define BOOST_MYSQL_DETAIL_SOCKET_STREAM_HPP #include #include #include namespace boost { namespace mysql { namespace detail { template struct is_socket : std::false_type { }; // typename basic_stream_socket::lowest_layer_type is basic_socket, so we accept basic_socket and // basic_stream_socket here template struct is_socket> : std::true_type { }; template struct is_socket> : std::true_type { }; template struct is_socket_stream : std::false_type { }; template struct is_socket_stream::value>::type> : std::true_type { }; } // namespace detail } // namespace mysql } // namespace boost #endif