Boost logo

Boost Users :

From: Luiz Marques (luiz.marques_at_[hidden])
Date: 2008-02-21 13:12:37


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<T*> is missing in the parameter.
I changed it locally and the problem was solved.

Can anyone confirm this problem ?

Thanks,
Luiz Marques


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net