Replace testers with standard metafunctions.

This commit is contained in:
Georgy Guminov committed 2025-01-25 17:30:15 +03:00
1 parent bf4cce6114
commit 741a627b73
3 files changed
+4 -46

No files matched your search

@@ -1,21 +0,0 @@
// Copyright David Abrahams 2003. Use, modification and distribution is
// subject to 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 ANY_CONVERSION_EATER_DWA20031117_HPP
# define ANY_CONVERSION_EATER_DWA20031117_HPP
namespace boost {
namespace iterators {
namespace detail {
// This type can be used in traits to "eat" up the one user-defined
// implicit conversion allowed.
struct any_conversion_eater
{
template <class T>
any_conversion_eater(T const&);
};
}}} // namespace boost::iterators::detail
#endif // ANY_CONVERSION_EATER_DWA20031117_HPP
@@ -6,8 +6,6 @@
#include <boost/mpl/aux_/lambda_support.hpp>
#include <boost/iterator/detail/any_conversion_eater.hpp>
#include <iterator>
#include <type_traits>
@@ -22,9 +20,6 @@ namespace detail
template <class Value>
struct is_readable_iterator_impl
{
static char tester(typename std::add_lvalue_reference<Value>::type, int);
static char (& tester(any_conversion_eater, ...) )[2];
template <class It>
struct rebind : std::is_convertible<
decltype(*std::declval<It&>())
@@ -33,8 +28,6 @@ namespace detail
{};
};
#undef BOOST_READABLE_PRESERVER
//
// void specializations to handle std input and output iterators
//