Ticket #9888: 0004-multi_array-fix-GCC-4.8-Wunused-local-typedefs-warni.patch

File 0004-multi_array-fix-GCC-4.8-Wunused-local-typedefs-warni.patch, 1.2 KB (added by mstahl@…, 9 years ago)
  • include/boost/multi_array/concept_checks.hpp

    From 6f7f647ad30a81dd78c937061f98bf00800e7b89 Mon Sep 17 00:00:00 2001
    From: Stephan Bergmann <sbergman@redhat.com>
    Date: Mon, 14 Apr 2014 11:45:53 +0200
    Subject: [PATCH 4/4] multi_array: fix GCC 4.8 -Wunused-local-typedefs warnings
    
    Signed-off-by: Michael Stahl <mstahl@redhat.com>
    ---
     include/boost/multi_array/concept_checks.hpp | 4 ----
     1 file changed, 4 deletions(-)
    
    diff --git a/include/boost/multi_array/concept_checks.hpp b/include/boost/multi_array/concept_checks.hpp
    index 7e5ba5d..a2e2f51 100644
    a b namespace detail {  
    3939
    4040    template <typename Array, typename IdxGen, typename Call_Type>
    4141    static void call(Array& a, const IdxGen& idgen, Call_Type c) {
    42       typedef typename Array::index_range index_range_;
    43       typedef typename Array::index index_;
    4442      idgen_helper<N-1>::call(a,idgen[c],c);
    4543    }
    4644  };
    namespace detail {  
    5048
    5149    template <typename Array, typename IdxGen, typename Call_Type>
    5250    static void call(Array& a, const IdxGen& idgen, Call_Type) {
    53       typedef typename Array::index_range index_range_;
    54       typedef typename Array::index index_;
    5551      a[ idgen ];
    5652    }
    5753  };