Skip to content

Commit

Permalink
Use const_ptr_deref in sid::composite
Browse files Browse the repository at this point in the history
  • Loading branch information
fthaler committed Oct 30, 2024
1 parent d968780 commit 53743ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/gridtools/sid/composite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <type_traits>
#include <utility>

#include "../common/const_ptr_deref.hpp"
#include "../common/defs.hpp"
#include "../common/for_each.hpp"
#include "../common/host_device.hpp"
Expand Down Expand Up @@ -211,7 +212,7 @@ namespace gridtools {
#if defined(__clang__) || !defined(__GNUC__) || (__GNUC__ != 9 && __GNUC__ != 10)
GT_FORCE_INLINE_LAMBDA
#endif
-> decltype(auto) { return *ptr; },
-> decltype(auto) { return const_ptr_deref(ptr); },
m_vals));
}

Expand Down Expand Up @@ -476,5 +477,5 @@ namespace gridtools {
friend values tuple_getter(values) { return {}; }
};
} // namespace composite
} // namespace sid
} // namespace sid
} // namespace gridtools

0 comments on commit 53743ef

Please sign in to comment.