From: Ken Lindsay (kl++at++grossberg.arc.nasa.gov)
Date: 05/30/2000 13:11:12
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
This archive was generated by hypermail 2b29 : Tue May 30 2000 - 13:39:04 PDT