Subj : Re: How to pass class-member function to pthread_create(....)? To : comp.programming.threads From : Maciej Sobczak Date : Mon Jul 18 2005 05:02 pm Vyacheslav Kononenko wrote: > Hmm if its unsafe to use a different linkage function by a pointer, why > C++ compiler does not warn at least? Because you tried the compiler that allows this. It does not make the code any more correct, though. As far as I remember, the aCC compiler on HP-UX barks on it, but I'm not sure about my memory and cannot check it right now. If you have access to this compiler, please try it. > In ideal it should fail to compile > when I try to assign incompatible pointers, shall it not?. Except when the compiler is already used to support a big mass of broken code, yes. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/ .