Commit c9e91aef authored by Pierre Kraemer's avatar Pierre Kraemer
Browse files

bug fix : foreach_dart return value

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