From 8287428f9d0785660ad2a078b8d2ca9ec9b510ab Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Mon, 9 Sep 2024 00:00:04 -0400 Subject: [PATCH] Range::shift is const --- src/TiledArray/range.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TiledArray/range.h b/src/TiledArray/range.h index 2d21b5d5d7..16c7fd943e 100644 --- a/src/TiledArray/range.h +++ b/src/TiledArray/range.h @@ -1005,7 +1005,7 @@ class Range { /// \return A shifted copy of this range template >> - Range_ shift(const Index& bound_shift) { + Range_ shift(const Index& bound_shift) const { Range_ result(*this); result.inplace_shift(bound_shift); return result; @@ -1018,7 +1018,7 @@ class Range { /// \return A shifted copy of this range template >> - Range_ shift(const std::initializer_list& bound_shift) { + Range_ shift(const std::initializer_list& bound_shift) const { Range_ result(*this); result.inplace_shift(bound_shift); return result;