Organization: University of Illinois at Urbana-Champaign
Lines: 16
In <hons.714103910@rkw-risc> hons@rkw-risc.cs.up.ac.za (Honneurs Studente) writes:
>Is it possible to cast a pointer to a member function for a specific object
>to a function pointer. The reason I ask is that sometimes operating systems expect function pointers as event handlers. Let us say for example that an
>object sets a timer and wants to give the system routine that sets the timer a
>pointer to a function to call when the timer expires. It would be nice if that
>function pointer could in fact be a member function of the class of which
>the object in question is an instance. I'm using a GLOCKENSPIEL C++ on VMS.