diff --git a/include/beast/core/detail/type_traits.hpp b/include/beast/core/detail/type_traits.hpp index 065e3a00..28125f9c 100644 --- a/include/beast/core/detail/type_traits.hpp +++ b/include/beast/core/detail/type_traits.hpp @@ -239,12 +239,6 @@ struct common_buffers_type boost::asio::const_buffer>::type; }; -//------------------------------------------------------------------------------ - -// -// stream concepts -// - // Types that meet the requirements, // for use with std::declval only. struct StreamHandler @@ -255,107 +249,6 @@ struct StreamHandler using ReadHandler = StreamHandler; using WriteHandler = StreamHandler; -template -class has_get_io_service -{ - template().get_io_service()), - boost::asio::io_service&>> - static R check(int); - template - static std::false_type check(...); -public: - using type = decltype(check(0)); -}; - -template -class is_async_read_stream -{ - template().async_read_some( - std::declval(), - std::declval()), - std::true_type{})> - static R check(int); - template - static std::false_type check(...); - using type1 = decltype(check(0)); -public: - using type = std::integral_constant::type::value>; -}; - -template -class is_async_write_stream -{ - template().async_write_some( - std::declval(), - std::declval()), - std::true_type{})> - static R check(int); - template - static std::false_type check(...); - using type1 = decltype(check(0)); -public: - using type = std::integral_constant::type::value>; -}; - -template -class is_sync_read_stream -{ - template().read_some( - std::declval())), - std::size_t>> - static R check1(int); - template - static std::false_type check1(...); - using type1 = decltype(check1(0)); - - template().read_some( - std::declval(), - std::declval())), std::size_t>> - static R check2(int); - template - static std::false_type check2(...); - using type2 = decltype(check2(0)); - -public: - using type = std::integral_constant; -}; - -template -class is_sync_write_stream -{ - template().write_some( - std::declval())), - std::size_t>> - static R check1(int); - template - static std::false_type check1(...); - using type1 = decltype(check1(0)); - - template().write_some( - std::declval(), - std::declval())), std::size_t>> - static R check2(int); - template - static std::false_type check2(...); - using type2 = decltype(check2(0)); - -public: - using type = std::integral_constant; -}; - } // detail } // beast