Skip to content

Commit

Permalink
Cuda 12.4 compatibility (#4991)
Browse files Browse the repository at this point in the history
Description of changes:

- add support for nvcc 12.4
   - sometimes `decltype` somehow fails to deduct the correct type of items in range-based for loops
  • Loading branch information
kodiakhq[bot] authored Sep 9, 2024
2 parents 1e3d4fb + b0a6ad6 commit 5a6d924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/include/utils/flatten.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ namespace detail {
template <class Container, class OutputIterator, class = void>
struct flatten_impl {
static OutputIterator apply(Container const &c, OutputIterator out) {
using ValueType = typename Container::value_type;
for (auto const &e : c) {
out = flatten_impl<decltype(e), OutputIterator>::apply(e, out);
out = flatten_impl<ValueType, OutputIterator>::apply(e, out);
}

return out;
Expand Down

0 comments on commit 5a6d924

Please sign in to comment.