I am writing a program with FLTK and in event handling part wanted to send the address of the handler function to callback function. Type cast just does not wrok.
Code:
	btnOpenDB->callback(&FLUI::WndMain::DBOpenBtnClick_scb, reinterpret_cast<void*>(&WndMain::DBOpenBtnClick_cb));
I want to cast "a pointer to a class member function which accepts one argument" to a void pointer. After all it is just an address. So it is logically possible to cast it. Isn't it? Actually an static_cast should be enough!