![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
|
Re: Pointer to member function
I would be interested to see the code, if you would care to post it.
|
|
|
|
|
|
#12 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 730
Rep Power: 4
![]() |
Re: Pointer to member function
Shouldn't this be straightforward using mem_fun from <functional>?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#13 | |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 288
Rep Power: 4
![]() |
Re: Pointer to member function
Quote:
![]()
__________________
http://www.klarre.se |
|
|
|
|
|
|
#14 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,192
Rep Power: 5
![]() |
Re: Pointer to member function
Quote:
|
|
|
|
|
|
|
#15 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
Re: Pointer to member function
This is also possible with Boost.Bind + Boost.Function. Example:
cpp Syntax (Toggle Plain Text)
__________________
Robotics @ Maryland AUV Team - Software Lead |
|
|
|
|
|
#16 | |
|
Newbie
Join Date: Dec 2007
Posts: 28
Rep Power: 0
![]() |
Re: Pointer to member function
Quote:
As for the boost code, thank you, that could also help me.As for finally getting to the very bottom of (non-)static member function pointers, here's an excellent site with lots of examples : http://www.newty.de/fpt/callback.html Thanks to all for the help! |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Incompatible pointer type (double pointer in a function) | Gabriel Margarido | C | 16 | Nov 23rd, 2007 3:04 AM |
| Get member function address | Klarre | C++ | 3 | Mar 28th, 2007 6:34 AM |
| Function pointer to a member function | Jimbo | C++ | 3 | May 12th, 2006 4:53 PM |
| Need help writing a member function | Rawr101 | C++ | 3 | Apr 11th, 2006 3:18 AM |
| function pointer | raom | C | 9 | Nov 18th, 2005 2:42 PM |