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: Costas Tsirogiannis <>
  • To:
  • Subject: Re: [cgal-discuss] template <T> bool object.is(void) member function
  • Date: Thu, 10 Jun 2010 18:23:48 +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=C1zBs/OEl9PFp1mpfXu2ZHNM+OxINm1aANEE8Xp3duYp0exQ9qKGL2u6/VRWM2YzOB /QY/90RUtEZFhIC21iI8/6c0JqZ2eE0gab8v2zSoga6AEV6A3rX1TS7BxeOLy2Wqol0k me3Wz6fwLWk/FnDxTN5nvQywi9KNbXjz3h+Fc=

> Is your "Object" type equal to K::Object_2 (or Object_3) with K passed as template
> parameter?

Yes,  something quite similar to that.  Thanks for the clarification.

While this part of this code does not pop any compilation errors, I now
get at a totally different point an error for a similar call:

‘class CGAL::Object’ has no member named ‘is’

Though there I put again `template' in front of 'is'. Any suggestion as to what causes that?

thanks again,

Constantinos



On Thu, Jun 10, 2010 at 4:07 PM, Laurent Rineau (GeometryFactory) <> wrote:
On Thursday 10 June 2010 15:47:58 Costas Tsirogiannis wrote:
>  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.

Normally, this keyword is only required to call template member functions of
types whose identifier is a dependent name (a name whose semantic may depend
on the template parameters). Is your "Object" type equal to K::Object_2 (or
Object_3) with K passed as template parameter?

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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page