diff --git a/src/misc/dbg_helpers.h b/src/misc/dbg_helpers.h index 53033110d8..b807ef25f1 100644 --- a/src/misc/dbg_helpers.h +++ b/src/misc/dbg_helpers.h @@ -25,7 +25,7 @@ template struct ArrayT; /** Helper template class that provides C array length and item type */ template struct ArrayT { static const size_t length = N; - typedef T item_t; + using Item = T; }; @@ -34,7 +34,7 @@ template struct ArrayT { * or t_unk when index is out of bounds. */ template -inline typename ArrayT::item_t ItemAtT(E idx, const T &t, typename ArrayT::item_t t_unk) +inline typename ArrayT::Item ItemAtT(E idx, const T &t, typename ArrayT::Item t_unk) { if ((size_t)idx >= ArrayT::length) { return t_unk; @@ -48,7 +48,7 @@ inline typename ArrayT::item_t ItemAtT(E idx, const T &t, typename ArrayT: * or t_unk when index is out of bounds. */ template -inline typename ArrayT::item_t ItemAtT(E idx, const T &t, typename ArrayT::item_t t_unk, E idx_inv, typename ArrayT::item_t t_inv) +inline typename ArrayT::Item ItemAtT(E idx, const T &t, typename ArrayT::Item t_unk, E idx_inv, typename ArrayT::Item t_inv) { if ((size_t)idx < ArrayT::length) { return t[idx];