Skip to content

Commit

Permalink
vect16 iterator are not const
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Jun 11, 2018
1 parent 1762b07 commit c1ed070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/perm16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ struct alignas(16) Vect16 {
const uint8_t &operator[](uint64_t i) const { return as_array()[i]; }
uint8_t &operator[](uint64_t i) { return as_array()[i]; }

// Auto is only calid here in C++14
using iter = const std::array<uint8_t, 16>::iterator;
// Auto is only valid here in C++14
using iter = std::array<uint8_t, 16>::iterator;
iter begin() { return as_array().begin(); }
iter end() { return as_array().end(); }

Expand Down

0 comments on commit c1ed070

Please sign in to comment.