view: slice should be const
This commit is contained in:
parent
5b9eae9b25
commit
41cf6c3d51
2
view.hpp
2
view.hpp
@ -293,7 +293,7 @@ namespace util {
|
|||||||
// "abc".slice(0, -1) == "abc"
|
// "abc".slice(0, -1) == "abc"
|
||||||
// "abc".slice(0, -2) == "ab"
|
// "abc".slice(0, -2) == "ab"
|
||||||
constexpr auto
|
constexpr auto
|
||||||
slice (int a, int b)
|
slice (int a, int b) const
|
||||||
{
|
{
|
||||||
auto first = m_begin;
|
auto first = m_begin;
|
||||||
auto last = m_begin;
|
auto last = m_begin;
|
||||||
|
Loading…
Reference in New Issue
Block a user