Skip to content

Commit

Permalink
Range::shift is const
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Sep 9, 2024
1 parent e005548 commit ffd8151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TiledArray/range.h
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ class Range {
/// \return A shifted copy of this range
template <typename Index,
typename = std::enable_if_t<detail::is_integral_range_v<Index>>>
Range_ shift(const Index& bound_shift) {
Range_ shift(const Index& bound_shift) const {
Range_ result(*this);
result.inplace_shift(bound_shift);
return result;
Expand All @@ -1018,7 +1018,7 @@ class Range {
/// \return A shifted copy of this range
template <typename Index,
typename = std::enable_if_t<std::is_integral_v<Index>>>
Range_ shift(const std::initializer_list<Index>& bound_shift) {
Range_ shift(const std::initializer_list<Index>& bound_shift) const {
Range_ result(*this);
result.inplace_shift(bound_shift);
return result;
Expand Down

0 comments on commit ffd8151

Please sign in to comment.