Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Boolean_set_operations_2 / intersections overloading ambiguity

Subject: CGAL users discussion list

List archive

[cgal-discuss] Boolean_set_operations_2 / intersections overloading ambiguity


Chronological Thread 
  • From: Hugo Mercier <>
  • To:
  • Subject: [cgal-discuss] Boolean_set_operations_2 / intersections overloading ambiguity
  • Date: Mon, 08 Apr 2013 15:10:43 +0200

Hi all,

I've found a situation where the inclusion of both
Boolean_set_operations_2.h and intersections.h causes a call to
CGAL::intersection being detected ambiguous.

I am not sure if it is considered a bug.

Is there a way to circumvent this except using one .cpp file for
intersections and another .cpp for boolean set operations ?


CGAL version 4.1
G++ / Linux

Example :
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/intersections.h>
#include <CGAL/Boolean_set_operations_2.h> // <-- remove to resolve
compilation issues

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;

int main() {
CGAL::Triangle_3<Kernel> tri1, tri2;
CGAL::Object o = intersection( tri1, tri2 );
}


--
Hugo Mercier
Oslandia



Archive powered by MHonArc 2.6.18.

Top of Page