Some fixes for sunpro 5.3.

This commit is contained in:
Michael Hoffmann 2001-09-14 08:15:06 +00:00
parent b4f68dfd6e
commit d9ec504f91
16 changed files with 40 additions and 37 deletions

View File

@ -109,7 +109,6 @@ cartesian_matrix( RandomAccessIC_row r_f,
CGAL_END_NAMESPACE
#endif // ! (CGAL_CARTESIAN_MATRIX_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -125,7 +125,6 @@ dynamic_matrix( const Matrix& m)
CGAL_END_NAMESPACE
#endif // ! (CGAL_DYNAMIC_MATRIX_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -388,7 +388,6 @@ maximum_perimeter_inscribed_k_gon(
CGAL_END_NAMESPACE
#endif // ! (CGAL_EXTREMAL_POLYGON_TRAITS_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -51,7 +51,6 @@ CGAL_END_NAMESPACE
#endif // ! (CGAL_PIERCE_RECTANGLES_2_TRAITS_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -51,7 +51,7 @@ protected:
};
template < class R >
struct Signed_x_distance_2
struct I_Signed_x_distance_2
: public CGAL_STD::binary_function<
Point_2< R >, Point_2< R >, typename R::FT >
{
@ -61,7 +61,7 @@ struct Signed_x_distance_2
{ return q1.x() - q2.x(); }
};
template < class R >
struct Signed_y_distance_2
struct I_Signed_y_distance_2
: public CGAL_STD::binary_function<
Point_2< R >, Point_2< R >, typename R::FT >
{
@ -71,7 +71,7 @@ struct Signed_y_distance_2
{ return q1.y() - q2.y(); }
};
template < class R >
struct Infinity_distance_2
struct I_Infinity_distance_2
: public CGAL_STD::binary_function<
Point_2< R >, Point_2< R >, typename R::FT >
{
@ -83,7 +83,7 @@ struct Infinity_distance_2
}
};
template < class R >
struct Signed_infinity_distance_2
struct I_Signed_infinity_distance_2
: public CGAL_STD::binary_function<
Point_2< R >, Point_2< R >, typename R::FT >
{
@ -93,7 +93,7 @@ struct Signed_infinity_distance_2
{ return max(q1.x() - q2.x(), q1.y() - q2.y()); }
};
template < class R >
struct Construct_point_2_above_right_implicit_point_2 {
struct I_Construct_point_2_above_right_implicit_point_2 {
// (p, q, r) |--> (p.x() + r, q.y() + r)
typedef typename R::FT FT;
typedef Point_2< Cartesian< FT > > P;
@ -104,7 +104,7 @@ struct Construct_point_2_above_right_implicit_point_2 {
};
template < class R >
struct Construct_point_2_above_left_implicit_point_2 {
struct I_Construct_point_2_above_left_implicit_point_2 {
// (p, q, r) |--> (p.x() - r, q.y() + r)
typedef typename R::FT FT;
typedef Point_2< Cartesian< FT > > P;
@ -115,7 +115,7 @@ struct Construct_point_2_above_left_implicit_point_2 {
};
template < class R >
struct Construct_point_2_below_left_implicit_point_2 {
struct I_Construct_point_2_below_left_implicit_point_2 {
// (p, q, r) |--> (p.x() - r, q.y() - r)
typedef typename R::FT FT;
typedef Point_2< Cartesian< FT > > P;
@ -126,7 +126,7 @@ struct Construct_point_2_below_left_implicit_point_2 {
};
template < class R >
struct Construct_point_2_below_right_implicit_point_2 {
struct I_Construct_point_2_below_right_implicit_point_2 {
// (p, q, r) |--> (p.x() + r, q.y() - r)
typedef typename R::FT FT;
typedef Point_2< Cartesian< FT > > P;
@ -163,19 +163,19 @@ struct Rectangular_p_center_default_traits_2 : public R
typedef typename R::Construct_vertex_2 Construct_vertex_2;
// additions
typedef Signed_x_distance_2< R > Signed_x_distance_2;
typedef Signed_y_distance_2< R > Signed_y_distance_2;
typedef I_Signed_x_distance_2< R > Signed_x_distance_2;
typedef I_Signed_y_distance_2< R > Signed_y_distance_2;
typedef Infinity_distance_2< R > Infinity_distance_2;
typedef Signed_infinity_distance_2< R > Signed_infinity_distance_2;
typedef I_Infinity_distance_2< R > Infinity_distance_2;
typedef I_Signed_infinity_distance_2< R > Signed_infinity_distance_2;
typedef Construct_point_2_above_right_implicit_point_2< R >
typedef I_Construct_point_2_above_right_implicit_point_2< R >
Construct_point_2_above_right_implicit_point_2;
typedef Construct_point_2_above_left_implicit_point_2< R >
typedef I_Construct_point_2_above_left_implicit_point_2< R >
Construct_point_2_above_left_implicit_point_2;
typedef Construct_point_2_below_right_implicit_point_2< R >
typedef I_Construct_point_2_below_right_implicit_point_2< R >
Construct_point_2_below_right_implicit_point_2;
typedef Construct_point_2_below_left_implicit_point_2< R >
typedef I_Construct_point_2_below_left_implicit_point_2< R >
Construct_point_2_below_left_implicit_point_2;
// get object methods:
@ -261,8 +261,7 @@ protected:
}; // Rectangular_p_center_matrix_search_traits_2< ... >
template < class ForwardIterator, class Traits >
Iso_rectangle_2<
typename std::iterator_traits< ForwardIterator >::value_type::R >
typename Traits::Iso_rectangle_2
bounding_box_2(ForwardIterator f, ForwardIterator l, const Traits& t)
// PRE: f != l.
{
@ -306,6 +305,20 @@ bounding_box_2(ForwardIterator f, ForwardIterator l)
Traits t;
return bounding_box_2(f, l, t);
} // bounding_box_2(f, l)
#ifdef CGAL_CFG_MATCHING_BUG_3
template < class ForwardIterator >
inline typename
std::iterator_traits< ForwardIterator* >::value_type::R::Iso_rectangle_2
bounding_box_2(ForwardIterator* f, ForwardIterator* l)
// PRE: f != l.
{
CGAL_precondition(f != l);
typedef typename std::iterator_traits< ForwardIterator* >::value_type::R R;
typedef Rectangular_p_center_default_traits_2< R > Traits;
Traits t;
return bounding_box_2(f, l, t);
} // bounding_box_2(f, l)
#endif // CGAL_CFG_MATCHING_BUG_3
template < class Rectangle, class Traits >
inline Rectangle
construct_bounding_box_union_2(const Rectangle& r1,
@ -352,7 +365,6 @@ CGAL_END_NAMESPACE
#endif // ! (CGAL_RECTANGULAR_P_CENTER_TRAITS_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -74,7 +74,6 @@ sorted_matrix_search_traits_adaptor(FeasibilityTest f, const Matrix&)
CGAL_END_NAMESPACE
#endif // ! (CGAL_SORTED_MATRIX_SEARCH_TRAITS_ADAPTOR_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -78,7 +78,6 @@ query_circulator_or_iterator(
CGAL_END_NAMESPACE
#endif // ! (CGAL_TRANSFORM_ITERATOR_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -87,8 +87,7 @@ public:
#undef Base
#endif // _MSC_VER
#if !defined(CGAL_CFG_NO_ITERATOR_TRAITS) && \
!defined(CGAL_CFG_MATCHING_BUG_2)
#if !defined(CGAL_CFG_NO_ITERATOR_TRAITS) && !defined(CGAL_CFG_MATCHING_BUG_2)
CGAL_END_NAMESPACE
#include <iterator>
@ -238,7 +237,6 @@ all_furthest_neighbors( RandomAccessIC points_begin,
CGAL_END_NAMESPACE
#endif // ! (CGAL_ALL_FURTHEST_NEIGHBORS_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -848,7 +848,6 @@ CGAL_END_NAMESPACE
#endif // ! (CGAL_EXTREMAL_POLYGON_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -213,7 +213,6 @@ _reduce_matrix(
CGAL_END_NAMESPACE
#endif // ! (CGAL_MONOTONE_MATRIX_SEARCH_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -224,10 +224,16 @@ struct Staircases : public Loc_domain< Traits_ > {
template < class InputIC >
Staircases(InputIC b, InputIC e, Traits t)
: Base(b, e, t), sorted(pts),
: Base(b, e, t),
sorted(pts),
xgy(t.signed_x_distance_2_object()(maxx, minx) >
t.signed_y_distance_2_object()(maxy, miny))
{
#if defined(__sun) && defined(__SUNPRO_CC)
// I get linker errors otherweise, the call from above
// does not seem to suffice :-(
{ Base bb(e, e, t); }
#endif // defined(__sun) && defined(__SUNPRO_CC)
#ifndef CGAL_CFG_NO_NAMESPACE
using std::sort;
using std::find_if;
@ -1032,7 +1038,6 @@ struct Four_covering_algorithm {
CGAL_END_NAMESPACE
#endif // ! (CGAL_PIERCE_RECTANGLES_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -1556,7 +1556,6 @@ CGAL_END_NAMESPACE
#endif // _MSC_VER
#endif // ! (CGAL_RECTANGULAR_3_CENTER_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -828,7 +828,6 @@ public:
};
#endif // ! (CGAL_RECTANGULAR_3_CENTER_2_MSVC_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -462,7 +462,6 @@ rectangular_p_center_2(ForwardIterator f,
CGAL_END_NAMESPACE
#endif // ! (CGAL_RECTANGULAR_P_CENTER_2_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -415,7 +415,6 @@ sorted_matrix_search(InputIterator f, InputIterator l, Traits t)
CGAL_END_NAMESPACE
#endif // ! (CGAL_SORTED_MATRIX_SEARCH_H)
// ----------------------------------------------------------------------------
// ** EOF
// ----------------------------------------------------------------------------

View File

@ -1 +1 @@
1.49 ( 1 Aug 2001)
1.50 (14 September 2001)