Commit c9e91aef authored by Pierre Kraemer's avatar Pierre Kraemer

bug fix : foreach_dart return value

parent e500303c
......@@ -232,22 +232,14 @@ template <typename FUNC>
inline void MapMono::foreach_dart(FUNC f)
{
for (Dart d = begin(); d != end(); next(d))
{
if (f(d))
return true;
}
return false;
f(d);
}
template <typename FUNC>
inline void MapMono::foreach_dart(FUNC& f)
{
for (Dart d = begin(); d != end(); next(d))
{
if (f(d))
return true;
}
return false;
f(d);
}
} // namespace CGoGN
......@@ -443,22 +443,14 @@ template <typename FUNC>
inline void MapMulti::foreach_dart(FUNC f)
{
for (Dart d = begin(); d != end(); next(d))
{
if (f(d))
return true;
}
return false;
f(d);
}
template <typename FUNC>
inline void MapMulti::foreach_dart(FUNC& f)
{
for (Dart d = begin(); d != end(); next(d))
{
if (f(d))
return true;
}
return false;
f(d);
}
} // namespace CGoGN
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