21 Feb
2008
21 Feb
'08
6:12 p.m.
Hi,
I'm trying to compile my code with boost.thread from SVN trunk (gcc
4.1.2, Fedora 7).
I get the following error :
/include/boost/thread/pthread/tss.hpp:55: error: invalid conversion
from void* to MyThread*
The code being compiled creates a thread_specific_ptr with a custom
cleanup function, and is OK with boost 1.34 .
Looking at the specified header, in line 55 there is a call to the
custom cleanup_function:
void operator()(void* data)
{
cleanup_function(data);
}
It seems like a static_cast