|
Boost Users : |
From: Christian Henning (chhenning_at_[hidden])
Date: 2006-09-19 11:47:49
Hi there, I know it must be very easy but I cannot figure it out
myself. Can somehow please take a look at:
class task
{
public:
template < class T >
void do_it( const T t )
{
thread_ptr.reset( new boost::thread( boost::bind( (void
(thread::*)(const T)) &thread::_run
, this )));
}
private:
template < class T >
void _run( const T t ) {}
private:
typedef boost::shared_ptr< boost::thread > thread_ptr_t;
thread_ptr_t thread_ptr;
};
There must be something wrong. I'm using VC2003. The comiler tells me:
c:\boost\boost\bind\bind_template.hpp(18) : error C2091: function
returns function
Thanks ahead,
Christian
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