diff --git a/test/indirect_iterator_member_types.cpp b/test/indirect_iterator_member_types.cpp index f160ad0..6ba2049 100644 --- a/test/indirect_iterator_member_types.cpp +++ b/test/indirect_iterator_member_types.cpp @@ -18,17 +18,14 @@ struct zow { }; -struct my_ptr1 { - typedef const zow element_type; +struct my_ptr { + typedef zow value_type; + typedef const zow& reference; + typedef const zow* pointer; + typedef void difference_type; + typedef boost::no_traversal_tag iterator_category; }; -struct my_ptr2 { }; -namespace boost { - template <> struct referent { - typedef const zow type; - }; -} - int main() { { @@ -62,7 +59,7 @@ int main() BOOST_STATIC_ASSERT((boost::is_same::value)); } { - typedef boost::indirect_iterator Iter; + typedef boost::indirect_iterator Iter; BOOST_STATIC_ASSERT((boost::is_same::value)); BOOST_STATIC_ASSERT((boost::is_same::value)); BOOST_STATIC_ASSERT((boost::is_same::value)); @@ -73,12 +70,6 @@ int main() BOOST_STATIC_ASSERT((boost::is_convertible::type, boost::random_access_traversal_tag>::value)); } - { - typedef boost::indirect_iterator Iter; - BOOST_STATIC_ASSERT((boost::is_same::value)); - BOOST_STATIC_ASSERT((boost::is_same::value)); - BOOST_STATIC_ASSERT((boost::is_same::value)); - } { typedef boost::indirect_iterator Iter; BOOST_STATIC_ASSERT((boost::is_same::value));