diff --git a/test/container_tests.cpp b/test/container_tests.cpp index 48aa47fb..dd4fd8f1 100644 --- a/test/container_tests.cpp +++ b/test/container_tests.cpp @@ -30,23 +30,32 @@ void container_tests(X*, T*) typedef typename X::difference_type difference_type; typedef typename X::size_type size_type; - BOOST_MPL_ASSERT((boost::is_same)); + typedef typename iterator::value_type iterator_value_type; + typedef typename const_iterator::value_type const_iterator_value_type; + typedef typename iterator::difference_type iterator_difference_type; + typedef typename const_iterator::difference_type const_iterator_difference_type; + + typedef typename X::value_type value_type; + typedef typename X::reference reference; + typedef typename X::const_reference const_reference; + + BOOST_MPL_ASSERT((boost::is_same)); // TODO: Actually 'lvalue of T'/'const lvalue of T' - BOOST_MPL_ASSERT((boost::is_same)); - BOOST_MPL_ASSERT((boost::is_same)); + BOOST_MPL_ASSERT((boost::is_same)); + BOOST_MPL_ASSERT((boost::is_same)); // TODO: Iterator checks. - BOOST_MPL_ASSERT((boost::is_same)); + BOOST_MPL_ASSERT((boost::is_same)); BOOST_MPL_ASSERT_NOT((boost::is_same, std::output_iterator_tag>)); BOOST_MPL_ASSERT((boost::is_convertible)); - BOOST_MPL_ASSERT((boost::is_same)); - BOOST_MPL_ASSERT_NOT((boost::is_same, std::output_iterator_tag>)); + BOOST_MPL_ASSERT((boost::is_same)); + BOOST_MPL_ASSERT_NOT((boost::is_same, std::output_iterator_tag>)); BOOST_MPL_ASSERT((boost::mpl::bool_::is_signed>)); BOOST_MPL_ASSERT((boost::mpl::bool_::is_integer>)); - BOOST_MPL_ASSERT((boost::is_same)); - BOOST_MPL_ASSERT((boost::is_same)); + BOOST_MPL_ASSERT((boost::is_same)); + BOOST_MPL_ASSERT((boost::is_same)); BOOST_MPL_ASSERT_NOT((boost::mpl::bool_::is_signed>)); BOOST_MPL_ASSERT((boost::mpl::bool_::is_integer>)); @@ -68,6 +77,7 @@ void container_tests2(X& a) typedef typename X::const_iterator const_iterator; typedef typename X::difference_type difference_type; typedef typename X::size_type size_type; + typedef typename X::allocator_type allocator_type; test::unordered_equivalence_tester equivalent(a); @@ -169,7 +179,7 @@ void container_tests2(X& a) // TODO: 23.1/9 - Make sure this is checked for all constructors. { - check_return_type::equals(a.get_allocator()); + check_return_type::equals(a.get_allocator()); } // TODO: 23.1/11 - Exception safety: