diff --git a/test/allocator_utilities_test.cpp b/test/allocator_utilities_test.cpp index 8649c54..2b06720 100644 --- a/test/allocator_utilities_test.cpp +++ b/test/allocator_utilities_test.cpp @@ -8,9 +8,9 @@ #include typedef std::allocator std_int_allocator; -typedef typename boost::detail::allocator::rebind_to::type char_allocator; -typedef typename boost::detail::allocator::rebind_to::type int_allocator; -typedef typename boost::detail::allocator::rebind_to::type char_allocator2; +typedef boost::detail::allocator::rebind_to::type char_allocator; +typedef boost::detail::allocator::rebind_to::type int_allocator; +typedef boost::detail::allocator::rebind_to::type char_allocator2; int main() { BOOST_STATIC_ASSERT((!boost::is_same::value)); @@ -24,14 +24,14 @@ int main() { // Check allocate works okay { - typename char_allocator::pointer p = a2.allocate(10); + char_allocator::pointer p = a2.allocate(10); assert(p); a2.deallocate(p, 10); } // Try using the standalone construct/destroy { - typename int_allocator::pointer p2 = a3.allocate(1); + int_allocator::pointer p2 = a3.allocate(1); boost::detail::allocator::construct(p2, 25); assert(*p2 == 25); boost::detail::allocator::destroy(p2); diff --git a/test/reference_content_test.cpp b/test/reference_content_test.cpp index 4d0f09a..4fb812e 100644 --- a/test/reference_content_test.cpp +++ b/test/reference_content_test.cpp @@ -9,8 +9,8 @@ BOOST_STATIC_ASSERT((boost::is_same::type>::value)); BOOST_STATIC_ASSERT((boost::is_same, boost::detail::make_reference_content::type>::value)); -BOOST_STATIC_ASSERT((boost::is_same::template apply::type>::value)); -BOOST_STATIC_ASSERT((boost::is_same, boost::detail::make_reference_content<>::template apply::type>::value)); +BOOST_STATIC_ASSERT((boost::is_same::apply::type>::value)); +BOOST_STATIC_ASSERT((boost::is_same, boost::detail::make_reference_content<>::apply::type>::value)); BOOST_STATIC_ASSERT((boost::has_nothrow_copy::type>::value)); int main() {}