From bf647c100eb89fc04c24d9473ede8b36130883d1 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 23 Jan 2016 17:38:41 +0000 Subject: [PATCH] re-add iter for arrays of const --- ostd/range.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ostd/range.hh b/ostd/range.hh index 150cb98..c7530df 100644 --- a/ostd/range.hh +++ b/ostd/range.hh @@ -1009,6 +1009,11 @@ PointerRange iter(T (&array)[N]) { return PointerRange(array, N); } +template +PointerRange iter(const T (&array)[N]) { + return PointerRange(array, N); +} + namespace detail { struct PtrNat {}; }