- Remove old style casts.

This commit is contained in:
Sylvain Pion 2001-02-13 15:38:54 +00:00
parent e475f89a0c
commit d06d92e7e6
5 changed files with 12 additions and 9 deletions

View File

@ -1,8 +1,9 @@
Version 6.5 (?? ?????? 2001)
Version 6.5 (13 February 2001)
- Kernel_traits_common.h shorted with the use of a macro
- Several missing function object classes added
- New class Cartesian_converter.
- .area() .squared_area() and .volume().
- Remove old style casts.
Version 6.4 (25 January 2001)
- Use the new file iterator_traits_pointer_specs_for_simple_cartesian_kernel.h

View File

@ -182,7 +182,7 @@ public:
print(std::ostream &os) const;
private:
Aff_t_base* ptr() const { return (Aff_t_base*)PTR; }
Aff_t_base* ptr() const { return static_cast<Aff_t_base*>(PTR); }
// FIXME : ptr() should be in Handle.
};

View File

@ -179,7 +179,7 @@ protected:
Self transpose() const { return ptr()->transpose(); }
private:
Aff_t_base* ptr() const { return (Aff_t_base*)PTR; }
Aff_t_base* ptr() const { return static_cast<Aff_t_base*>(PTR); }
};

View File

@ -314,12 +314,12 @@ operator<<(std::ostream &os, const CircleC2<R CGAL_CTAG> &c)
switch(os.iword(IO::mode)) {
case IO::ASCII :
os << c.center() << ' ' << c.squared_radius() << ' '
<< (int)c.orientation();
<< static_cast<int>(c.orientation());
break;
case IO::BINARY :
os << c.center();
write(os, c.squared_radius());
write(os, (int)c.orientation());
write(os, static_cast<int>(c.orientation()));
break;
default:
os << "CircleC2(" << c.center() << ", " << c.squared_radius() ;
@ -364,7 +364,8 @@ operator>>(std::istream &is, CircleC2<R CGAL_CTAG> &c)
break;
}
if (is)
c = CircleC2<R CGAL_CTAG>(center, squared_radius, (Orientation)o);
c = CircleC2<R CGAL_CTAG>(center, squared_radius,
static_cast<Orientation>(o));
return is;
}
#endif // CGAL_NO_ISTREAM_EXTRACT_CIRCLEC2

View File

@ -321,12 +321,12 @@ operator<<(std::ostream &os, const SphereC3<R CGAL_CTAG> &c)
switch(os.iword(IO::mode)) {
case IO::ASCII :
os << c.center() << ' ' << c.squared_radius() << ' '
<< (int)c.orientation();
<< static_cast<int>(c.orientation());
break;
case IO::BINARY :
os << c.center();
write(os, c.squared_radius());
write(os, (int)c.orientation());
write(os, static_cast<int>(c.orientation()));
break;
default:
os << "SphereC3(" << c.center() << ", " << c.squared_radius();
@ -371,7 +371,8 @@ operator>>(std::istream &is, SphereC3<R CGAL_CTAG> &c)
break;
}
if (is)
c = SphereC3<R CGAL_CTAG>(center, squared_radius, (Orientation)o);
c = SphereC3<R CGAL_CTAG>(center, squared_radius,
static_cast<Orientation>(o));
return is;
}
#endif // CGAL_NO_ISTREAM_EXTRACT_SPHEREC3