V
Vio
While converting a C file to C++
the C line:
THREAD_CREATE(tid, (void *)server_thread, sss);
complains with:
ANSI C++ forbids implicit conversion from `void *' in argument passing.
some context info:
the macro THREAD_CREATE is:
#define THREAD_CREATE(tid, entry, arg) do { _beginthread((entry), 0,
(arg));\
(tid) = GetCurrentThreadId(); \
} while (0)
#endif
server_thread is:
void THREAD_CC server_thread(void *arg){...}
Someone suggested to make it explicit, but I don't know how to do that
right now (or perhaps I don't understand what he ment). Declaring
server_thread explicit doesn't work, since that only works for
constructors (which server_thread is not).
Other suggestions?
Cheers,
Vio
the C line:
THREAD_CREATE(tid, (void *)server_thread, sss);
complains with:
ANSI C++ forbids implicit conversion from `void *' in argument passing.
some context info:
the macro THREAD_CREATE is:
#define THREAD_CREATE(tid, entry, arg) do { _beginthread((entry), 0,
(arg));\
(tid) = GetCurrentThreadId(); \
} while (0)
#endif
server_thread is:
void THREAD_CC server_thread(void *arg){...}
Someone suggested to make it explicit, but I don't know how to do that
right now (or perhaps I don't understand what he ment). Declaring
server_thread explicit doesn't work, since that only works for
constructors (which server_thread is not).
Other suggestions?
Cheers,
Vio