Subject: CGAL users discussion list
List archive
- From: Ben Supnik <>
- To:
- Subject: Re: [cgal-discuss] Inheritance of Polygon_2.
- Date: Sat, 03 Oct 2009 11:21:32 -0400
Hi Gilles,
I tried to copy the typedefs (from Polygon_2.h to my inherited class) is it what you meant ?
No you need to do something like this:
class my_class : public some_cgal_thing<traits> {
public:
typedef some_cgal_thing<traits> base;
typedef typename base::XXX XXX;
typedef typename base::YYY YYY;
etc.
Where XXX and YYY are typedefs defined in the cgal class.
cheers
ben
the compiler cannot find the type of this one :
typedef Traits_P Traits;
it says : "...«Traits_P» does not name a type..."
Where this "bloody" type Traits is defined ???
Thank you in advance !
Gilles
--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:
Developer mailing list:
- [cgal-discuss] Inheritance of Polygon_2., gilles.kneuss, 10/03/2009
- Re: [cgal-discuss] Inheritance of Polygon_2., Ben Supnik, 10/03/2009
- Re: [cgal-discuss] Inheritance of Polygon_2., gilles, 10/03/2009
- Re: [cgal-discuss] Inheritance of Polygon_2., gilles, 10/03/2009
- Re: [cgal-discuss] Inheritance of Polygon_2., Ben Supnik, 10/03/2009
- Re: [cgal-discuss] Inheritance of Polygon_2., Ben Supnik, 10/03/2009
- Re: [cgal-discuss] Inheritance of Polygon_2., Ben Supnik, 10/03/2009
Archive powered by MHonArc 2.6.16.