From 6e08bcf48e0778fe2283d843d539e6153e5c6699 Mon Sep 17 00:00:00 2001
From: Franz Detro <franz.detro@native-instruments.de>
Date: Mon, 11 Feb 2013 12:30:21 +0100
Subject: [PATCH] fix warnings in boost circular_buffer
---
boost/circular_buffer/base.hpp | 2 +-
boost/circular_buffer/space_optimized.hpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/boost/circular_buffer/base.hpp b/boost/circular_buffer/base.hpp
index 3b9886a..4893cb2 100644
a
|
b
|
private:
|
2316 | 2316 | } |
2317 | 2317 | |
2318 | 2318 | //! Specialized method for swapping the allocator. |
2319 | | void swap_allocator(circular_buffer<T, Alloc>& cb, const true_type&) { |
| 2319 | void swap_allocator(circular_buffer<T, Alloc>&, const true_type&) { |
2320 | 2320 | // Swap is not needed because allocators have no state. |
2321 | 2321 | } |
2322 | 2322 | |
diff --git a/boost/circular_buffer/space_optimized.hpp b/boost/circular_buffer/space_optimized.hpp
index 9c76afe..5350676 100644
a
|
b
|
private:
|
1300 | 1300 | |
1301 | 1301 | //! Specialized method for determining the initial capacity. |
1302 | 1302 | template <class IntegralType> |
1303 | | static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType item, |
| 1303 | static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType, |
1304 | 1304 | const true_type&) { |
1305 | 1305 | return init_capacity(capacity_ctrl, static_cast<size_type>(n)); |
1306 | 1306 | } |
… |
… |
private:
|
1320 | 1320 | |
1321 | 1321 | //! Specialized method for determining the initial capacity. |
1322 | 1322 | template <class InputIterator> |
1323 | | static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator first, InputIterator last, |
| 1323 | static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator, InputIterator, |
1324 | 1324 | const std::input_iterator_tag&) { |
1325 | 1325 | return capacity_ctrl.capacity(); |
1326 | 1326 | } |