From 95c6d56cf9dc2e232fcb10b9b488aa1b6c57bc5b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 3 Mar 2014 14:09:41 +1100 Subject: [PATCH] Make elems parameters const --- types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.hpp b/types.hpp index ad2c0604..6e74ec45 100644 --- a/types.hpp +++ b/types.hpp @@ -28,7 +28,7 @@ /// Returns the number of elements of a statically allocated array template -constexpr size_t elems(T (&)[N]) +constexpr size_t elems(const T (&)[N]) { return N; }