Subject: CGAL users discussion list
List archive
- From: vimarsh <>
- To:
- Subject: [cgal-discuss] Using Plane_3 as key in a std::map
- Date: Tue, 8 Dec 2015 07:05:06 -0800 (PST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:/NgyexInP+K0Xu/KMdmcpTZWNBhigK39O0sv0rFitYgULvjxwZ3uMQTl6Ol3ixeRBMOAu6wC07KempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRMiK14ye7KObxd76W01wnj2zYLd/fl2djD76kY0ou7ZkMbs70RDTo3FFKKx8zGJsIk+PzV6nvp/jtKhKqHoB/qt5v44bCf27LOwESulTAz0idmw0/8b2rgLrTA2V53JaXH9FvABPBl3b7RTzRIzx+n/kt+90wjKae8beQrU9WDDk5KBuHky7wBwbPiI0pTiEwvd7i7hW9Un5/xE=
Hi,
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.
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 )
Thanks.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Using-Plane-3-as-key-in-a-std-map-tp4661450.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Using Plane_3 as key in a std::map, vimarsh, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, Marc Glisse, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, gunshi gupta, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, vimarsh, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, Marc Glisse, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, Andreas Fabri, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, vimarsh, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, Marc Glisse, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, vimarsh, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, Andreas Fabri, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, gunshi gupta, 12/08/2015
- Re: [cgal-discuss] Using Plane_3 as key in a std::map, Marc Glisse, 12/08/2015
Archive powered by MHonArc 2.6.18.