Thread
:
Derived Classes Can't Set Function Pointers
View Single Post
#
4
(
permalink
)
10-23-2007, 09:47 AM
limo
Newbie
Join Date: Oct 2007
Location: Australia
Posts: 14
Rep Power:
0
I don't think you can. Even if it does work, it's not a safe cast. The behaviour would be unpredictable depending on the compiler. And that's bad! Best way to approach this is to use a different design. Polymorphic functions would work better.
limo
View Public Profile
Send a private message to limo
Visit limo's homepage!
Find all posts by limo