diff --git a/test/indirect_iterator_member_types.cpp b/test/indirect_iterator_member_types.cpp index 8e8fd01..f160ad0 100644 --- a/test/indirect_iterator_member_types.cpp +++ b/test/indirect_iterator_member_types.cpp @@ -16,10 +16,6 @@ #include #include -struct incomplete; -struct none { }; -void see_type(none) { } - struct zow { }; struct my_ptr1 { @@ -36,13 +32,7 @@ namespace boost { int main() { { - typedef boost::indirect_iterator< - int**, - /* Value = */ boost::use_default, - /* Category = */ boost::use_default, - /* Reference = */ boost::use_default, - /* Difference = */ boost::use_default> 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)); @@ -54,57 +44,46 @@ int main() boost::random_access_traversal_tag>::value)); } { - typedef boost::indirect_iterator< - my_ptr1*, - /* Value = */ boost::use_default, - /* Category = */ boost::use_default, - /* Reference = */ boost::use_default, - /* Difference = */ boost::use_default> Iter; - - BOOST_STATIC_ASSERT((boost::is_same::value)); - BOOST_STATIC_ASSERT((boost::is_same::value)); - BOOST_STATIC_ASSERT((boost::is_same::value)); - BOOST_STATIC_ASSERT((boost::is_same::value)); - - BOOST_STATIC_ASSERT((boost::is_convertible::value)); - BOOST_STATIC_ASSERT((boost::is_convertible::type, - boost::random_access_traversal_tag>::value)); - } - { - typedef boost::indirect_iterator< - my_ptr2*, - /* Value = */ boost::use_default, - /* Category = */ boost::use_default, - /* Reference = */ boost::use_default, - /* Difference = */ boost::use_default> 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< - int**, - int, - /* Category = */ boost::use_default, - /* Reference = */ boost::use_default, - /* Difference = */ boost::use_default> 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< - int**, - const int, - /* Category = */ boost::use_default, - /* Reference = */ boost::use_default, - /* Difference = */ boost::use_default> 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)); } + { + 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)); + 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)); + BOOST_STATIC_ASSERT((boost::is_same::value)); + BOOST_STATIC_ASSERT((boost::is_same::value)); + BOOST_STATIC_ASSERT((boost::is_same::value)); + + BOOST_STATIC_ASSERT((boost::is_convertible::value)); + 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)); + BOOST_STATIC_ASSERT((boost::is_same::value)); + BOOST_STATIC_ASSERT((boost::is_same::value)); + BOOST_STATIC_ASSERT((boost::is_same::value)); + } }