diff --git a/Packages/Alpha_shapes_2/changes.txt b/Packages/Alpha_shapes_2/changes.txt index 5207bffc74f..232ac2a2d67 100644 --- a/Packages/Alpha_shapes_2/changes.txt +++ b/Packages/Alpha_shapes_2/changes.txt @@ -1,3 +1,6 @@ +version 11.11: +- Fixes for SunPro. + version 11.10: - Remove useless non standard . diff --git a/Packages/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h b/Packages/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h index 57db706a985..ce78425a74d 100644 --- a/Packages/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h +++ b/Packages/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h @@ -91,9 +91,8 @@ private: typedef long Key; - typedef std::pair< Coord_type, Face_handle > Interval_face; - typedef std::multimap< Coord_type, Face_handle, std::less > - Interval_face_map; + typedef std::multimap< Coord_type, Face_handle > Interval_face_map; + typedef typename Interval_face_map::value_type Interval_face; typedef typename Tds::Face Face_tds; typedef typename Face_tds::Face Face_base; @@ -101,14 +100,12 @@ private: // should be replaced by as soon as possible // typedef typename Face::Interval_3 Interval3; - typedef std::pair< Interval3, Edge > Interval_edge; - typedef std::multimap< Interval3, Edge, std::less > - Interval_edge_map; + typedef std::multimap< Interval3, Edge > Interval_edge_map; + typedef typename Interval_edge_map::value_type Interval_edge; typedef std::pair< Coord_type, Coord_type > Interval2; - typedef std::pair< Interval2, Vertex_handle > Interval_vertex; - typedef std::multimap< Interval2, Vertex_handle, std::less > - Interval_vertex_map; + typedef std::multimap< Interval2, Vertex_handle > Interval_vertex_map; + typedef typename Interval_vertex_map::value_type Interval_vertex; typedef Face_handle const const_void; typedef std::pair const_Edge; @@ -117,7 +114,7 @@ private: typedef std::vector< Segment > Vect_seg; - typedef std::set< Key, std::less > Marked_face_set; + typedef std::set< Key > Marked_face_set; public: @@ -722,11 +719,8 @@ Alpha_shape_2
::initialize_interval_face_map() { Coord_type alpha_f; - Face_iterator face_it; // only finite faces - for( face_it = faces_begin(); - face_it != faces_end(); - ++face_it) + for(Face_iterator face_it = faces_begin(); face_it != faces_end(); ++face_it) { alpha_f = squared_radius(face_it); _interval_face_map.insert(Interval_face(alpha_f, face_it)); @@ -1423,7 +1417,7 @@ Alpha_shape_2
::op_ostream(std::ostream& os) const const typename Alpha_shape_2
::Interval2* pInterval2; typedef long Key; - std::map< Key, int, std::less< Key > > V; + std::map< Key, int > V; int number_of_vertices = 0; diff --git a/Packages/Alpha_shapes_3/changes.txt b/Packages/Alpha_shapes_3/changes.txt index 74821cb93ef..432a2553a6d 100644 --- a/Packages/Alpha_shapes_3/changes.txt +++ b/Packages/Alpha_shapes_3/changes.txt @@ -1,3 +1,6 @@ +version 3.12: +- Fixes for SunPro. + version 3.11: - Implicit typenames detected by GCC 3.1. diff --git a/Packages/Alpha_shapes_3/include/CGAL/Alpha_shape_3.h b/Packages/Alpha_shapes_3/include/CGAL/Alpha_shape_3.h index 869248e4e95..d57464bd5f4 100644 --- a/Packages/Alpha_shapes_3/include/CGAL/Alpha_shape_3.h +++ b/Packages/Alpha_shapes_3/include/CGAL/Alpha_shape_3.h @@ -96,32 +96,28 @@ private: typedef long Key; - typedef std::pair< Coord_type, Cell_handle > Interval_cell; - typedef std::multimap< Coord_type, Cell_handle, std::less > - Interval_cell_map; + typedef std::multimap< Coord_type, Cell_handle > Interval_cell_map; + typedef typename Interval_cell_map::value_type Interval_cell; typedef triple Interval3; - typedef std::pair< Interval3, Facet > Interval_facet; - typedef std::multimap< Interval3, Facet, std::less > - Interval_facet_map; + typedef std::multimap< Interval3, Facet > Interval_facet_map; + typedef typename Interval_facet_map::value_type Interval_facet; // typedef Cell_handle const const_void; // typedef std::pair< const_void, int > const_Facet; // typedef std::pair< const_void, int > const_Vertex; typedef std::pair< Interval3, Edge > Interval_edge; - typedef std::multimap< Interval3, Edge, std::less > - Interval_edge_map; + typedef std::multimap< Interval3, Edge > Interval_edge_map; typedef std::pair< Coord_type, Coord_type > Interval2; - typedef std::pair< Interval2, Vertex_handle > Interval_vertex; - typedef std::multimap< Interval2, Vertex_handle, std::less > - Interval_vertex_map; + typedef std::multimap< Interval2, Vertex_handle > Interval_vertex_map; + typedef typename Interval_vertex_map::value_type Interval_vertex; typedef std::vector< Coord_type > Alpha_spectrum; - typedef std::set< Key, std::less > Marked_cell_set; + typedef std::set< Key > Marked_cell_set; public: