Ticket #8032: circular_buffer.diff

File circular_buffer.diff, 2.0 KB (added by Franz Detro <franz.detro@…>, 10 years ago)
  • boost/circular_buffer/base.hpp

    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:  
    23162316    }
    23172317
    23182318    //! 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&) {
    23202320        // Swap is not needed because allocators have no state.
    23212321    }
    23222322
  • boost/circular_buffer/space_optimized.hpp

    diff --git a/boost/circular_buffer/space_optimized.hpp b/boost/circular_buffer/space_optimized.hpp
    index 9c76afe..5350676 100644
    a b private:  
    13001300
    13011301    //! Specialized method for determining the initial capacity.
    13021302    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,
    13041304        const true_type&) {
    13051305        return init_capacity(capacity_ctrl, static_cast<size_type>(n));
    13061306    }
    private:  
    13201320
    13211321    //! Specialized method for determining the initial capacity.
    13221322    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,
    13241324        const std::input_iterator_tag&) {
    13251325        return capacity_ctrl.capacity();
    13261326    }