goem/segment: indices should be const

This commit is contained in:
Danny Robson 2020-02-27 11:50:04 +11:00
parent 6cf54f6f14
commit 2401cd60cf

View File

@ -34,7 +34,7 @@ namespace cruft::geom {
template <std::size_t ...Indices, typename ...ArgsT>
segment<sizeof...(Indices),T>
indices (ArgsT &&...args)
indices (ArgsT &&...args) const
{
return segment<sizeof...(Indices),T> {
.a = a.template indices<Indices...> (args...),