view: make_view should be const

This commit is contained in:
Danny Robson 2017-01-04 22:39:18 +11:00
parent b770e5f370
commit a3f24db5d5

View File

@ -175,7 +175,7 @@ template <typename T, size_t N>
auto
util::make_view (const T (&arr)[N])
{
return util::view<T*> { arr, arr + N };
return util::view<const T*> (arr + 0, arr + N);
}