GCC 4.8 -Wunused-local-typedefs complains about an unused local typedef.

fixes #9888.
This commit is contained in:
Ronald Garcia 2014-04-23 10:14:08 -07:00
parent 0cb44bf7dc
commit 8da3864210

View File

@ -39,8 +39,6 @@ namespace detail {
template <typename Array, typename IdxGen, typename Call_Type> template <typename Array, typename IdxGen, typename Call_Type>
static void call(Array& a, const IdxGen& idgen, Call_Type c) { static void call(Array& a, const IdxGen& idgen, Call_Type c) {
typedef typename Array::index_range index_range;
typedef typename Array::index index;
idgen_helper<N-1>::call(a,idgen[c],c); idgen_helper<N-1>::call(a,idgen[c],c);
} }
}; };
@ -50,8 +48,6 @@ namespace detail {
template <typename Array, typename IdxGen, typename Call_Type> template <typename Array, typename IdxGen, typename Call_Type>
static void call(Array& a, const IdxGen& idgen, Call_Type) { static void call(Array& a, const IdxGen& idgen, Call_Type) {
typedef typename Array::index_range index_range;
typedef typename Array::index index;
a[ idgen ]; a[ idgen ];
} }
}; };