> Surely that isn't right? The object pointer would lose its type when > set into the list so you WOULD have to cast it on extraction?
I meant casting the function pointer. Of course a cast on the object pointer would still be necessary, but it's not 'nasty'. :-) > (As I understand it, it also wouldn't solve the OP's problem > - he needed to call many different methods from the same object, not > the same method from many different objects.) Well, I'm really confused. If the OP needs to call different methods from the same object, then what I suggested won't work. I thought the problem is the other way round. If the purpose is the former as Jason suggests, I don't get why a map won't work. ------------- Ehsan Akhgari Farda Technology (http://www.farda-tech.com/) List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] In the mountains the shortest way is from peak to peak, but for that route you must have long legs. Aphorisms should be peaks, and those spoken to should be tall and lofty. -Thus Spoke Zarathustra, F. W. Nietzsche _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
