array_string: declare 'arr' member as const.
authorDavin McCall <davmac@davmac.org>
Thu, 7 Jun 2018 22:17:11 +0000 (23:17 +0100)
committerDavin McCall <davmac@davmac.org>
Thu, 7 Jun 2018 22:17:11 +0000 (23:17 +0100)
src/includes/static-string.h

index 71cce4caa23bae0387b74297f98e93538d40b426..3d42f2e10a63e330e9c1df3bcf3b9ca96b36e8f0 100644 (file)
@@ -114,7 +114,7 @@ constexpr int static_length()
 template <int N>
 class array_string
 {
-    char arr[N+1];
+    const char arr[N+1];
 
     template <typename S1, typename S2, int... S> constexpr
     array_string(const S1 &s1, const S2 &s2, const sequence<S...> seq)