From 1a9b7bccc3c74546a6c0675d71274d10f374f581 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 3 May 2018 15:52:42 +0300 Subject: [PATCH] Remove typename/template uses outside of templates --- test/allocator_utilities_test.cpp | 10 +++++----- test/reference_content_test.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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() {}