
21 May
2008
21 May
'08
1:12 p.m.
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