* mln/topo/adj_m_face_iter.hh
(mln::topo::internal::adj_m_face_iterator<D>::update_adj_faces__):
Please Apple g++ 4.0 by casting an iterator to the expected type.
---
milena/ChangeLog | 8 ++++++++
milena/mln/topo/adj_m_face_iter.hh | 7 ++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index c37ff7d..ca4549c 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2008-11-12 Roland Levillain <roland(a)lrde.epita.fr>
+ Work around a bug of Apple g++ 4.0.
+
+ * mln/topo/adj_m_face_iter.hh
+ (mln::topo::internal::adj_m_face_iterator<D>::update_adj_faces__):
+ Please Apple g++ 4.0 by casting an iterator to the expected type.
+
+2008-11-12 Roland Levillain <roland(a)lrde.epita.fr>
+
Add meshes with curvature information.
* mesh/bunny-holefilled-curv.off,
diff --git a/milena/mln/topo/adj_m_face_iter.hh b/milena/mln/topo/adj_m_face_iter.hh
index d9ed9e5..32b5af6 100644
--- a/milena/mln/topo/adj_m_face_iter.hh
+++ b/milena/mln/topo/adj_m_face_iter.hh
@@ -339,7 +339,12 @@ namespace mln
else
{
for (typename faces_t::const_reverse_iterator h =
- q_faces.rbegin(); h != q_faces.rend(); ++h)
+ q_faces.rbegin();
+ /* This is crazy. With Apple g++ 4.0, this
+ code won't compile without this cast!
+ This is solved in MacPorts g++ 4.3. */
+ h != (typename faces_t::const_reverse_iterator) q_faces.rend();
+ ++h)
// Don't insert a face twice.
if (work_faces_set.find(*h) == work_faces_set.end())
{
--
1.6.0.1