}
inline
- thread(thread &other) :
+ thread(const thread &other) :
_native_handle(other._native_handle)
{
}
DWORD id = 0;
_native_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)f, (LPVOID)arg, 0, &id);
#else
- pthread_create(&_native_handle, NULL, ( void *(*) (void *))f, arg);
+ pthread_create(&_native_handle, NULL, (void *(*) (void *))f, (void *)arg);
#endif
}