From b1e5c5c309c51d9787669ffa9e85ea36412b09a1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 20 Sep 2013 17:33:25 +1000 Subject: [PATCH] Make elems function constexpr --- types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.hpp b/types.hpp index 29cc7587..ad2c0604 100644 --- a/types.hpp +++ b/types.hpp @@ -28,7 +28,7 @@ /// Returns the number of elements of a statically allocated array template -size_t elems(T (&)[N]) +constexpr size_t elems(T (&)[N]) { return N; }