From c7407e34f64006e981c5e91413faa82bf064c21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 23 Aug 2016 02:13:03 +0200 Subject: [PATCH] Replaced int with std::size_t when building indexes. --- include/boost/container/detail/advanced_insert_int.hpp | 4 ++-- include/boost/container/detail/variadic_templates_tools.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/container/detail/advanced_insert_int.hpp b/include/boost/container/detail/advanced_insert_int.hpp index 56df588..278cd1b 100644 --- a/include/boost/container/detail/advanced_insert_int.hpp +++ b/include/boost/container/detail/advanced_insert_int.hpp @@ -236,7 +236,7 @@ struct insert_nonmovable_emplace_proxy { this->priv_uninitialized_copy_some_and_update(a, index_tuple_t(), p, n); } private: - template + template void priv_uninitialized_copy_some_and_update(Allocator &a, const index_tuple&, Iterator p, size_type n) { BOOST_ASSERT(n == 1); (void)n; @@ -266,7 +266,7 @@ struct insert_emplace_proxy private: - template + template void priv_copy_some_and_update(Allocator &a, const index_tuple&, Iterator p, size_type n) { BOOST_ASSERT(n ==1); (void)n; diff --git a/include/boost/container/detail/variadic_templates_tools.hpp b/include/boost/container/detail/variadic_templates_tools.hpp index d8c8443..f9b022f 100644 --- a/include/boost/container/detail/variadic_templates_tools.hpp +++ b/include/boost/container/detail/variadic_templates_tools.hpp @@ -135,18 +135,18 @@ typename get_impl >::const_type get(const tuple& // in a function call. //////////////////////////////////////////////////// -template +template struct index_tuple{}; template > struct build_number_seq; -template +template struct build_number_seq > : build_number_seq > {}; -template +template struct build_number_seq<0, index_tuple > { typedef index_tuple type; };