diff --git a/locations.cpp b/locations.cpp index 9e102f27..ec531e53 100644 --- a/locations.cpp +++ b/locations.cpp @@ -269,7 +269,7 @@ template struct walker { template walker operator + (U t) const { walker w = *this; w += t; return w; } template walker operator - (U t) const { walker w = *this; w += (-t); return w; } /** \brief what T are we facing, without creating it */ - T*& peek() { return at->move(spin); } + T*& peek() const { return at->move(spin); } /** \brief what T are we facing, with creating it */ T* cpeek() { return at->cmove(spin); } /** \brief would we create a new T if we stepped forwards? */