Fixed ForEach signature to allow lambdas.

This commit is contained in:
Alex Zolotarev 2016-01-04 17:17:19 +03:00 committed by Sergey Yershov
parent 4ab632bc47
commit 6be425966d

View file

@ -69,7 +69,7 @@ class FeaturesFetcher : public Index::Observer
/// @name Features enumeration.
//@{
template <class ToDo>
void ForEachFeature(m2::RectD const & rect, ToDo & toDo, int scale) const
void ForEachFeature(m2::RectD const & rect, ToDo && toDo, int scale) const
{
m_multiIndex.ForEachInRect(toDo, rect, scale);
}