Skip to content

Commit 797d88f

Browse files
Merge branch 'python' into python
2 parents bb8014c + 5a6d924 commit 797d88f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/include/utils/flatten.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ namespace detail {
2727
template <class Container, class OutputIterator, class = void>
2828
struct flatten_impl {
2929
static OutputIterator apply(Container const &c, OutputIterator out) {
30+
using ValueType = typename Container::value_type;
3031
for (auto const &e : c) {
31-
out = flatten_impl<decltype(e), OutputIterator>::apply(e, out);
32+
out = flatten_impl<ValueType, OutputIterator>::apply(e, out);
3233
}
3334

3435
return out;

0 commit comments

Comments
 (0)