Skip to content

Commit

Permalink
Allow reference return values of sid::as_const
Browse files Browse the repository at this point in the history
  • Loading branch information
fthaler committed Oct 29, 2024
1 parent 3913959 commit 6cd93db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gridtools/fn/sid_neighbor_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace gridtools::fn::sid_neighbor_table {
static_assert(!std::is_same_v<IndexDimension, NeighborDimension>,
"The index dimension and the neighbor dimension must be different.");

const auto const_sid = sid::as_const(std::forward<Sid>(sid));
decltype(auto) const_sid = sid::as_const(std::forward<Sid>(sid));
const auto origin = sid::get_origin(const_sid);
const auto strides = sid::get_strides(const_sid);

Expand Down

0 comments on commit 6cd93db

Please sign in to comment.