Skip to content

Commit

Permalink
Change to west-const, since I think that's the Ports-of-Call standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanKKrueger committed Sep 13, 2024
1 parent 1ed9372 commit 4af547c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports-of-call/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class span {

// Index operator to obtain mutable access to an element of the range.
template <typename Index>
PORTABLE_FUNCTION constexpr T &operator[](Index const &index) {
PORTABLE_FUNCTION constexpr T &operator[](const Index &index) {
assert(index >= 0);
assert(static_cast<std::size_t>(index) < size_);
return *(ptr_ + index);
Expand Down

0 comments on commit 4af547c

Please sign in to comment.