Function Pointer
I don''t think you can, I think when you overload a function it''s really just several functions using the same name with different signatures, hence the same function can have several different addresses.
#include <cassert>void Function(void) {}void Function(int) {} // overloaded functionsint main(int argc, char *argv[]){ void(*a)(void) = &Function void(*b)(int) = &Function // got addresses from the same function assert((void *)(a)!=(void *)(b)); // yet they are different return 0;}
I think so, because the function pointer have parameters. So, if your function pointer keeps the same name but have different parameters, it should be overloaded...
/* Bullmax */
-------------
Reality has many forms : good and evil, black and white, ying and yang.
/* Bullmax */
-------------
Reality has many forms : good and evil, black and white, ying and yang.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement