Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] template <T> bool object.is(void) member function

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] template <T> bool object.is(void) member function


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] template <T> bool object.is(void) member function
  • Date: Thu, 10 Jun 2010 21:45:43 +0200
  • Organization: GeometryFactory

Le jeudi 10 juin 2010 19:10:29, Costas Tsirogiannis a écrit :
> > Well, this time it probably means that you are compiling with an old
>
> version
>
> > of CGAL, Which CGAL version are you using?
>
> 3.5.1 . Should I upgrade? :)

Search for the differences:
http://www.cgal.org/Manual/3.5/doc_html/cgal_manual/STL_Extension_ref/Class_Object.html
http://www.cgal.org/Manual/3.6/doc_html/cgal_manual/STL_Extension_ref/Class_Object.html

Apart the release number in the footer (and numbers in links), there is only
one visible difference... Guess what is the difference?

You should upgrade to CGAL-3.6 (whose documentation you refer to), or not use
is<T>(). If you want to stick to CGAL-3.5.1, instead of:
obj.is<T>()
you can use:
CGAL::object_cast<T>(&obj) != NULL

--
Laurent Rineau, PhD
Release Manager of the CGAL Project http://www.cgal.org/
R&D Engineer at GeometryFactory http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page