Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Using Plane_3 as key in a std::map

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Using Plane_3 as key in a std::map


Chronological Thread 
  • From: Marc Glisse <>
  • To:
  • Subject: Re: [cgal-discuss] Using Plane_3 as key in a std::map
  • Date: Tue, 8 Dec 2015 16:36:05 +0100 (CET)

On Tue, 8 Dec 2015, vimarsh wrote:

I wanted to use a Plane_3 as the key value in a std::map, so i passed the
third argument to the map as:

typedef CGAL::Lazy_exact_nt<CGAL::Gmpq> NT;
typedef CGAL::Extended_cartesian<NT> K;
typedef K::Plane_3
Plane3;

It does not work if i just do std::map<Plane3,int>,(so i guess it is not
derived from LessComparable), and i tried passing CGAL::Plane_lt as the
third argument, but later realised that is only for RingType while my kernel
uses a FieldType.

Uh? A field is a ring. Could you show a minimal program and the error you got?

How can i achieve what i want with my kernel?
(I also tried replacing the RT with FT, after copying how Plane_lt is
defined, in my code, but that didn't work either )

"doesn't work" doesn't help.

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page