From 1a3aeeb3366437b9f2948c97a0e3e77882b7d5d7 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 22 Sep 2015 00:51:41 +0200 Subject: [PATCH] Fix test compilation boost::detail::iterator_traits was used without including the necessary header file. It's deprecated anyway and only maps to std::iterator_traits. Also, utility was missing for std::pair. --- test/iterator_pair.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/iterator_pair.cpp b/test/iterator_pair.cpp index ba13d75..7b615a9 100644 --- a/test/iterator_pair.cpp +++ b/test/iterator_pair.cpp @@ -22,6 +22,8 @@ #include #include #include +#include +#include void check_iterator_pair() { @@ -39,23 +41,23 @@ void check_iterator_pair() BOOST_STATIC_ASSERT(( boost::is_same< boost::range_value::type, - boost::detail::iterator_traits::value_type>::value )); + std::iterator_traits::value_type>::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_iterator::type, pair_t::first_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_const_iterator::type, pair_t::first_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_difference::type, - boost::detail::iterator_traits::difference_type >::value )); + std::iterator_traits::difference_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_size::type, std::size_t >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_iterator::type, pair_t::first_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_iterator::type, const_pair_t::first_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_value::type, - boost::detail::iterator_traits::value_type>::value )); + std::iterator_traits::value_type>::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_iterator::type, const_pair_tt::first_type >::value )); // // This behavior is not supported with v2. //BOOST_STATIC_ASSERT(( is_same< range_const_iterator::type, const_pair_tt::first_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_difference::type, - boost::detail::iterator_traits::difference_type >::value )); + std::iterator_traits::difference_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_size::type, std::size_t >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_iterator::type, const_pair_tt::first_type >::value )); BOOST_STATIC_ASSERT(( boost::is_same< boost::range_iterator::type, const_pair_tt::first_type >::value ));