one more question on functors :
I have a header file myclass.h which has the class myclass
myclass {
public :
void func1(osg::NodePtr nptr,osg::UInt32 mask);
::Action::ResultE enterSetVisible(osg::NodePtr& node);
}
and in myclass.cpp I have implemented the two functions like this :
::Action::ResultE myclass::enterSetVisible(NodePtr& node)
{
/********* code ***********/
return ::Action::Continue;
}
void SceneGraphAnalyser::func1(NodePtr nptr,UInt32 mask){
traverse(nptr,
osgTypedFunctionFunctor1CPtrRef<::Action::ResultE ,
NodePtr >(myclass::enterSetVisible));
}
on compiling I am getting the error :
error C2664: 'osg::osgTypedFunctionFunctor1CPtrRef' : cannot convert parameter
1 from 'osg::Action::ResultE (osg::NodePtr &)' to 'osg::Action::ResultE
(__cdecl *)(osg::NodePtr &)'
Any hints at why I am getting this error will be very helpful .
Thanks
Shailesh