Subj : Re: How to pass class-member function to pthread_create(....)? To : comp.programming.threads From : Torsten Robitzki Date : Mon Jul 18 2005 05:11 pm Vyacheslav Kononenko wrote: > > Maciej Sobczak wrote: >>The trick with static member is popular, but incorrect, at least with >>pthreads (but it may work elsewhere, like with Windows API when compiled >>with Microsoft compilers). >> > > Hmm if its unsafe to use a different linkage function by a pointer, why > C++ compiler does not warn at least? In ideal it should fail to compile > when I try to assign incompatible pointers, shall it not?. There are a lot of thinks C++ compiler don't have to warn about. And on compiler / platforms, where the ABI for static member functions are equal to those of C functions, there is no technical difference in the pointer type and it might be hard to implement such a warning. best regards Torsten .