Skip to content

Commit

Permalink
replace decltype by typename for some compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
reinaual committed Sep 9, 2024
1 parent 1e3d4fb commit b0a6ad6
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 b0a6ad6

Please sign in to comment.