Hi,

shailesh kumar wrote:
  But what if the function and the functor creation is in the same class.
> I thought member function of the same class where functor creation is done will not require TypedMethod functor creation
> because we dont need an object to call a function in the same class.

no, sorry, you do need an object to call a method in the same class, it is just implicitly *this. You do not see this when calling your methods from one another normally, but when you create a functor that should call a non-static member method of class foo it requires an foo object, otherwise imagine what would happen if the member method dereferenced this...


        Hope it helps,
                Carsten


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to