c++ - Difference in definition of member and non member function prototype -


am correct, what

typedef void(classname::*functionname)(); definition of class member function prototype

and

typedef void(*functionname)(); definition of non class or static function prototype

and should used differently:

for class function

pass: registerfunction(&classname::function);

use: (classpointer->*(classpointer->functionpointer))()

for static function

pass: registerfunction(&function);

use: functionpointer();

or misunderstand something?


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -