Original Post
Consider the following scenario: class myClass {... void method(); }; typedef void (*proc)(void *); ... myClass object; void *ptr = &object// cast object to void * proc foo = &myClass::method; // cast class method to type 'proc' (brutal) and now if i do 'foo(ptr);' the 'method' from 'object' will be called. this is equivalent with object.method(); In visual studio 2008 this is allowed and it works with no problems as far as i tested this.Is this absolutely safe with any class type and on other compilers? Thanks Raxvan.