Of course you are right. I simply pointed the possible ways.
On storing references and pointers to callbacks, I asked a question here: http://www.ultimatepp.org/forums/index.php?t=msg&goto=48 350&#msg_48350
If you have time, I'd be grateful If you could share your thoughts on the matter. (I need to solve this problem before I publish the SSH package for U++)