Subject: CGAL users discussion list
List archive
- From: Costas Tsirogiannis <>
- To:
- Subject: Re: [cgal-discuss] template <T> bool object.is(void) member function
- Date: Thu, 10 Jun 2010 15:47:58 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wYoSUiV2Ef7mRZYdOQaF1q5j0CdcYc3v+tmvT6nFONzN6U6rpbJAN2Rc1qS8595l6z Kf69zTeFU6uBGK/cFb21vEBCv8+wXhyuUHUyKtw0gHlwSwq3d6G1idkhKHetQoGj6nnw iAOM894MLPOOHnud1/85mfigLFodjRcf7isdE=
Indeed, this extra "template" before "is" made it work.
Why is this needed in the present case?
Normally a templated member function can be called without it.
Thanks!
Constantinos
On Thu, Jun 10, 2010 at 3:10 PM, Andreas Fabri <> wrote:
On 10/06/2010 15:06, Sylvain Pion wrote:Hi Costas,
Le 10/06/10 14:57, Costas Tsirogiannis a écrit :
Greetings,
Is the .is() member function of CGAL::Object still existing?
It is listed here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/STL_Extension_ref/Class_Object.html#Cross_link_anchor_1811
If it try to call it I get this strange compilation error :
error: expected primary-_expression_ before ‘>’ token
error: expected primary-_expression_ before ‘)’ token
I looked in the header file of CGAL::Object and Handle_for_virtual but
it doesn't seem listed there.
Is there another way to get this boolean out without trying a
CGAL::assign?
Hi Costas,
Are you using a recent enough version of CGAL ?
If you are in a template context, your compiler may require you
to call it as "obj.template is<T>()".
and instead of assign you should use object_cast
best,
andreas
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Sylvain Pion, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Andreas Fabri, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Laurent Rineau (GeometryFactory), 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Laurent Rineau (GeometryFactory), 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Laurent Rineau (GeometryFactory), 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/11/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Laurent Rineau (GeometryFactory), 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Laurent Rineau (GeometryFactory), 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Costas Tsirogiannis, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Andreas Fabri, 06/10/2010
- Re: [cgal-discuss] template <T> bool object.is(void) member function, Sylvain Pion, 06/10/2010
Archive powered by MHonArc 2.6.16.