RE: Compilation error while return function pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Purnendu,

A pointer to a function is different from a pointer to a member function.

The member function has an implicit "this" pointer.

Because of that difference, the types are not the same.

One way to correct the problem that the compiler has identified is to change your member_test1 to be a class function by annotating it with the static keyword.  Depending on what you are trying to do, that may-or-may-not be something that would work.  Hard to tell, since your code example as given is not compilable.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux