Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Mosimann committed Jul 3, 2019
1 parent 4ed5af1 commit 9c05cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace gridtools {

template <class Arg>
void operator()() const {
auto const &stride = sid::get_stride<Dim>(m_self->template strides<Arg>());
auto stride = sid::get_stride<Dim>(m_self->template strides<Arg>());
auto &ptr = at_key<Arg>(m_self->m_ptr_map);
sid::shift(ptr, stride, m_offset);
}
Expand Down
2 changes: 1 addition & 1 deletion include/gridtools/stencil_composition/sid/concept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ namespace gridtools {
*/
template <class Key, class Strides>
GT_CONSTEXPR GT_FUNCTION decltype(auto) get_stride(Strides &&strides) {
return gridtools::host_device::at_key_with_default<Key, default_stride>(strides);
return gridtools::host_device::at_key_with_default<Key, default_stride>(wstd::forward<Strides>(strides));
}

struct get_origin_f {
Expand Down

0 comments on commit 9c05cf2

Please sign in to comment.