view: slice should be const

This commit is contained in:
Danny Robson 2018-04-01 14:44:08 +10:00
parent 5b9eae9b25
commit 41cf6c3d51

View File

@ -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;