fix iterator type

This commit is contained in:
Max Lyon
2019-10-18 14:29:52 +02:00
parent 56c1348493
commit 660e46db24

View File

@@ -123,7 +123,7 @@ struct SmartRangeT
{
auto range = static_cast<const RangeT*>(this);
std::vector<typename std::remove_reference<decltype (f(std::declval<HandleT>()))>::type> res;
for (auto e : *range)
for (const auto& e : *range)
res.push_back(f(e));
return res;
}