Subject: CGAL users discussion list
List archive
- From: "Jannis Warnat" <>
- To: <>
- Subject: [cgal-discuss] Arr_batched_point_location_meta_traits.h
- Date: Fri, 19 Dec 2008 17:04:11 +0100
Hello,
I tried using the function CGAL::decompose in
Arr_vertical_decomposition.h while having defined VERBOSE in
Basic_sweep_line_2.h. This didn“t compile, because the operator<< is not
defined in Arr_batched_point_location_meta_traits.h, which is used by
Arr_vertical_decomposition.h.
I nicked the following definitions from
Arr_overlay_2/Overlay_meta_traits.h and included them in
Arr_batched_point_location_meta_traits.h:
friend std::ostream& operator<<
(std::ostream& os, const My_Point_2 & p)
{
os << p.base_point();
return (os);
}
friend std::ostream& operator<<
(std::ostream& os, const My_X_monotone_curve_2 & cv)
{
os << cv.base_curve();
return (os);
}
Maybe you want to include this in the
next release, might be helpful to others as well.
Kind regards,
Jannis
Warnat
|
- [cgal-discuss] Arr_batched_point_location_meta_traits.h, Jannis Warnat, 12/19/2008
Archive powered by MHonArc 2.6.16.