From 41cf6c3d51928f4e74218f96ce90204f722dd418 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 1 Apr 2018 14:44:08 +1000 Subject: [PATCH] view: slice should be const --- view.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.hpp b/view.hpp index bf17eac4..9438cfc7 100644 --- a/view.hpp +++ b/view.hpp @@ -293,7 +293,7 @@ namespace util { // "abc".slice(0, -1) == "abc" // "abc".slice(0, -2) == "ab" constexpr auto - slice (int a, int b) + slice (int a, int b) const { auto first = m_begin; auto last = m_begin;