mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-29 12:27:33 +02:00
Remove dependency on deprecated type_traits headers.
This commit is contained in:
@ -14,7 +14,7 @@
|
|||||||
#include <boost/mpl/bool.hpp>
|
#include <boost/mpl/bool.hpp>
|
||||||
|
|
||||||
// should be the last #includes
|
// should be the last #includes
|
||||||
#include <boost/type_traits/detail/bool_trait_def.hpp>
|
#include <boost/type_traits/integral_constant.hpp>
|
||||||
#include <boost/iterator/detail/config_def.hpp>
|
#include <boost/iterator/detail/config_def.hpp>
|
||||||
|
|
||||||
#ifndef BOOST_NO_IS_CONVERTIBLE
|
#ifndef BOOST_NO_IS_CONVERTIBLE
|
||||||
@ -136,13 +136,15 @@ namespace detail
|
|||||||
{};
|
{};
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
// Define the trait with full mpl lambda capability and various broken
|
template< typename T > struct is_lvalue_iterator
|
||||||
// compiler workarounds
|
: public ::boost::integral_constant<bool,::boost::iterators::detail::is_readable_lvalue_iterator_impl<T>::value>
|
||||||
BOOST_TT_AUX_BOOL_TRAIT_DEF1(
|
{
|
||||||
is_lvalue_iterator,T,::boost::iterators::detail::is_readable_lvalue_iterator_impl<T>::value)
|
};
|
||||||
|
|
||||||
BOOST_TT_AUX_BOOL_TRAIT_DEF1(
|
template< typename T > struct is_non_const_lvalue_iterator
|
||||||
is_non_const_lvalue_iterator,T,::boost::iterators::detail::is_non_const_lvalue_iterator_impl<T>::value)
|
: public ::boost::integral_constant<bool,::boost::iterators::detail::is_non_const_lvalue_iterator_impl<T>::value>
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace iterators
|
} // namespace iterators
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
#include <boost/detail/iterator.hpp>
|
#include <boost/detail/iterator.hpp>
|
||||||
#include <boost/type_traits/add_lvalue_reference.hpp>
|
#include <boost/type_traits/add_lvalue_reference.hpp>
|
||||||
|
|
||||||
#include <boost/type_traits/detail/bool_trait_def.hpp>
|
|
||||||
#include <boost/iterator/detail/any_conversion_eater.hpp>
|
#include <boost/iterator/detail/any_conversion_eater.hpp>
|
||||||
|
|
||||||
// should be the last #include
|
// should be the last #include
|
||||||
|
#include <boost/type_traits/integral_constant.hpp>
|
||||||
#include <boost/iterator/detail/config_def.hpp>
|
#include <boost/iterator/detail/config_def.hpp>
|
||||||
|
|
||||||
#ifndef BOOST_NO_IS_CONVERTIBLE
|
#ifndef BOOST_NO_IS_CONVERTIBLE
|
||||||
@ -97,10 +97,10 @@ namespace detail
|
|||||||
{};
|
{};
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
// Define the trait with full mpl lambda capability and various broken
|
template< typename T > struct is_readable_iterator
|
||||||
// compiler workarounds
|
: public ::boost::integral_constant<bool,::boost::iterators::detail::is_readable_iterator_impl2<T>::value>
|
||||||
BOOST_TT_AUX_BOOL_TRAIT_DEF1(
|
{
|
||||||
is_readable_iterator,T,::boost::iterators::detail::is_readable_iterator_impl2<T>::value)
|
};
|
||||||
|
|
||||||
} // namespace iterators
|
} // namespace iterators
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user