diff --git a/Combinatorial_map/include/CGAL/Combinatorial_map/internal/Combinatorial_map_utility.h b/Combinatorial_map/include/CGAL/Combinatorial_map/internal/Combinatorial_map_utility.h index 361e2533a9e..891c2fe1540 100644 --- a/Combinatorial_map/include/CGAL/Combinatorial_map/internal/Combinatorial_map_utility.h +++ b/Combinatorial_map/include/CGAL/Combinatorial_map/internal/Combinatorial_map_utility.h @@ -432,19 +432,6 @@ namespace CGAL typedef typename CMap::template Container_for_attributes type; }; - template - struct GetIndexOrHandle - { typedef typename T::iterator type; }; - template - struct GetIndexOrHandle - { typedef typename T::Index type; }; - template - struct GetConstIndexOrConstHandle - { typedef typename T::const_iterator type; }; - template - struct GetConstIndexOrConstHandle - { typedef typename T::Index type; }; - // defines as type Compact_container::iterator template struct Add_compact_container_iterator{ @@ -453,13 +440,10 @@ namespace CGAL typedef typename CMap::template Container_for_attributes::iterator iterator_type; - // TODO case when there is no Use_index typedef in CMap + // TODO? case when there is no Use_index typedef in CMap typedef typename boost::mpl::if_ < typename boost::is_same::type, typename CMap::Dart_handle, iterator_type >::type type; - - /*typedef typename GetIndexOrHandle - >::type type;*/ }; // defines as type Compact_container::const_iterator @@ -473,8 +457,6 @@ namespace CGAL typedef typename boost::mpl::if_ < typename boost::is_same::type, typename CMap::Dart_const_handle, iterator_type >::type type; - /*typedef typename GetConstIndexOrConstHandle - >::type type;*/ }; // All the attributes (with CGAL::Void) diff --git a/Combinatorial_map/include/CGAL/Combinatorial_map_iterators_base.h b/Combinatorial_map/include/CGAL/Combinatorial_map_iterators_base.h index 972242857d5..315853e3a41 100644 --- a/Combinatorial_map/include/CGAL/Combinatorial_map_iterators_base.h +++ b/Combinatorial_map/include/CGAL/Combinatorial_map_iterators_base.h @@ -66,19 +66,18 @@ namespace CGAL { class CMap_dart_iterator; template < typename Map_,bool Const> - class CMap_dart_iterator: - /*public boost::mpl::if_c< Const, + class CMap_dart_iterator: public boost::mpl::if_c< Const, typename Map_::Dart_container::const_iterator, - typename Map_::Dart_container::iterator>::type*/ - public internal::CC_iterator + typename Map_::Dart_container::iterator>::type + //public internal::CC_iterator { public: typedef CMap_dart_iterator Self; - /*typedef typename boost::mpl::if_c< Const, + typedef typename boost::mpl::if_c< Const, typename Map_::Dart_container::const_iterator, - typename Map_::Dart_container::iterator>::type Base;*/ - typedef internal::CC_iterator Base; + typename Map_::Dart_container::iterator>::type Base; + // typedef internal::CC_iterator Base; typedef typename boost::mpl::if_c< Const, typename Map_::Dart_const_handle,