Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Bug in Nef_polyhedron_iostream_3.h?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Bug in Nef_polyhedron_iostream_3.h?


Chronological Thread 
  • From: "Max" <>
  • To: "" <>
  • Subject: [cgal-discuss] Bug in Nef_polyhedron_iostream_3.h?
  • Date: Mon, 11 Feb 2008 13:47:24 +0800
  • Disposition-notification-to: "Max" <>
  • Organization: LoadCom

Hi,

I found the code in Nef_polyhedron_iostream_3.h:

template <typename Kernel, typename Items, typename Mark>
std::ostream& operator<<
(std::ostream& os, Nef_polyhedron_3<Kernel,Items,Mark>& NP)
{

Should the line
(std::ostream& os, Nef_polyhedron_3<Kernel,Items,Mark>& NP)
be
(std::ostream& os, const Nef_polyhedron_3<Kernel,Items,Mark>& NP)
^^^^^^^
?

If that's true, its forward declaration and friend declaration in class
Nef_polyhedron_3 should be corrected as const, and SNC_io_parser.h stuff.

I attemped to 'correct'(if I'm correct :-)) the files
Nef_polyhedron_iostream_3.h
and Nef_polyhedron_3.h, but that seems to be not simple in file
SNC_io_parser.h.
So I've rolled back my change.

Thanks.
Max



Archive powered by MHonArc 2.6.16.

Top of Page