From dc0aa175a9f774e69661d89da64f21751458cf32 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 21 May 2013 18:48:05 +0000 Subject: [PATCH] Applied patch from #8032 [SVN r84405] --- include/boost/circular_buffer/base.hpp | 2 +- include/boost/circular_buffer/space_optimized.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/circular_buffer/base.hpp b/include/boost/circular_buffer/base.hpp index 3b9886a..4893cb2 100644 --- a/include/boost/circular_buffer/base.hpp +++ b/include/boost/circular_buffer/base.hpp @@ -2316,7 +2316,7 @@ private: } //! Specialized method for swapping the allocator. - void swap_allocator(circular_buffer& cb, const true_type&) { + void swap_allocator(circular_buffer&, const true_type&) { // Swap is not needed because allocators have no state. } diff --git a/include/boost/circular_buffer/space_optimized.hpp b/include/boost/circular_buffer/space_optimized.hpp index 9c76afe..5350676 100644 --- a/include/boost/circular_buffer/space_optimized.hpp +++ b/include/boost/circular_buffer/space_optimized.hpp @@ -1300,7 +1300,7 @@ private: //! Specialized method for determining the initial capacity. template - static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType item, + static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType, const true_type&) { return init_capacity(capacity_ctrl, static_cast(n)); } @@ -1320,7 +1320,7 @@ private: //! Specialized method for determining the initial capacity. template - static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator first, InputIterator last, + static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator, InputIterator, const std::input_iterator_tag&) { return capacity_ctrl.capacity(); }