diff --git a/src/utils/include/utils/flatten.hpp b/src/utils/include/utils/flatten.hpp index 638eaf178d..3f068fd2bd 100644 --- a/src/utils/include/utils/flatten.hpp +++ b/src/utils/include/utils/flatten.hpp @@ -27,8 +27,9 @@ namespace detail { template 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::apply(e, out); + out = flatten_impl::apply(e, out); } return out;