Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2008-05-21 09:12:26


Peter Dimov wrote:

> Try
>
> template <class T, class R, class A1>
> thread(R (T::*f)(),A1 a1):
>
> without the P1. This would only work for no-argument non-const member
> functions though. More overloads are needed to cover all cases. I'll think
> about fixing that somehow on the bind side. A more systematic thread::thread
> test that covers all possibilities would be nice to have.

In the mean while I already tried

         template <class T,class A1>
             thread(void (T::*f)(),A1 a1):

which worked, so I think your suggestion will work too.

Markus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk