🔒 Locked
function pointers
Advertisement
Original Post
You know, I still don''t know how they work...
~Dwarf
~Dwarf
That''s no problem, simply go to www.function-pointer.org to find out more than you ever want to know about function pointers.
------------------------------
BASIC programmers don''t die, they just GOSUB and don''t return.
------------------------------
BASIC programmers don''t die, they just GOSUB and don''t return.
quote:
Original post by DrPizza
The only annoyance I have with them is that you can''t treat a bound member function pointer as a regular function pointer (though I think g++ has an extension to permit this), and you can''t elegantly frig it with a class or classes.
That''s what boost::function has been created for.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
boost:: ?? What is that?
I would be very nice to have a class hold a function pointer to one of it''s own classes. I''m sure that there are ways to do this, but I would like a way that doesn''t require a C++ genious to write. All the function pointers that I''ve had to use, to get my task done, I''ve had to make global.
I would be very nice to have a class hold a function pointer to one of it''s own classes. I''m sure that there are ways to do this, but I would like a way that doesn''t require a C++ genious to write. All the function pointers that I''ve had to use, to get my task done, I''ve had to make global.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement