Commit 660e46db authored by Max Lyon's avatar Max Lyon
Browse files

fix iterator type

parent 56c13484
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment