Re: member functions

New Message Reply Date view Thread view Subject view Author view

From: Brian Furtaw (brian++at++sgi.com)
Date: 05/31/2000 07:24:35


Is your member function foo_preTravCB declared static?

Brian

 Ken Lindsay wrote:
>
> hi,
>
> I am trying to implement traverser callbacks in a c++ class. If I try to
> make the function a member function, I get this error:
>
> "NelAircraft.cpp", line 333: error(1515): a value of type
> "void (NelAircraft::*)(pfuTraverser *)" cannot be assigned to an
> entity of type "pfuTravFuncType"
> trav.preFunc = foo_preTravCB;
> ^
>
> if I prototype the functions separately:
>
> int foo_postTravCB(pfuTraverser *trav);
>
> then I compile with no problem. How am I supposed to write this to
> get the c++ compiler to be happy?
>
> thanks
>
> ken
>
> -==-
>
> ken "fire a few neurons" lindsay kl++at++mars.arc.nasa.gov
> NASA Ames Research Center QSS Group, Inc.
> Bldg 269, Room 281 (650) 604 0461 (lab)
> Mail Stop 269-1 (650) 604 3594 (fax)
> Moffett Field, CA 94035-1000 (650) 604 3181 (vox)
>
> When inlaws are outlawed, only outlaws will have inlaws
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian++at++sgi.com) Graphics Guru Office:(301)572-3293 Fax: (603)250-0370 12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision Silver Spring, Maryland 20904 Volumizer/Optimizer/React/PCI Device Drivers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 01 2000 - 12:17:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.