diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c2d7e61..d182427c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* Remove `core/type_traits.hpp` (API Change) * Remove `reset` function from `flat_static_buffer` (API Change) * Remove `mutable_data_type` from Dyanmic Buffers (API Change) * Remove deprecated lowest_layer from test::stream @@ -8,6 +9,10 @@ API Changes: +* The `core/type_traits.hpp` public header has been removed and along with it + the type trait `is_completion_handler`. Beast uses the CompletionHandler correctness + checks provided by Asio. In a c++20 environment, these convert to concept checks. + * The `reset` function has been removed from `flat_static_buffer`. Use the `clear` function instead. diff --git a/include/boost/beast/core/type_traits.hpp b/include/boost/beast/core/type_traits.hpp deleted file mode 100644 index 2f423018..00000000 --- a/include/boost/beast/core/type_traits.hpp +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco 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) -// -// Official repository: https://github.com/boostorg/beast -// - -#ifndef BOOST_BEAST_TYPE_TRAITS_HPP -#define BOOST_BEAST_TYPE_TRAITS_HPP - -#ifndef BOOST_BEAST_DOXYGEN - -#include -#include -#include -#include - -BOOST_PRAGMA_MESSAGE(" is DEPRECATED and will be removed in a future release.") - -namespace boost { -namespace beast { - -/** Determine if `T` meets the requirements of CompletionHandler. - - This trait checks whether a type meets the requirements for a completion - handler, and is also callable with the specified signature. - Metafunctions are used to perform compile time checking of template - types. This type will be `std::true_type` if `T` meets the requirements, - else the type will be `std::false_type`. - - @par Example - Use with `static_assert`: - @code - struct handler - { - void operator()(error_code&); - }; - static_assert(is_completion_handler::value, - "Not a completion handler"); - @endcode -*/ -template -#if BOOST_BEAST_DOXYGEN -using is_completion_handler = __see_below__ -#else -using is_completion_handler = std::integral_constant::type>::value && - detail::is_invocable::value>; -#endif - -} // beast -} // boost - -#endif - -#endif