Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Inheritance of Polygon_2.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Inheritance of Polygon_2.


Chronological Thread 
  • 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:




Archive powered by MHonArc 2.6.16.

Top of Page