[SDL] SDL_CreateThread with C++ method as a parameter
Ulrich Eckhardt
doomster at knuut.de
Sun Mar 23 08:16:18 PDT 2008
On Saturday 22 March 2008 14:51:17 Brian wrote:
> class Tetra {
> public:
> void runThread()
> {
> SDL_Thread *thread =SDL_CreateThread(&StaticThreadProcGravity,this);
^^^^^^^^^^^^^^^^^^^^^^^^
This needs to be
&Tetra::StaticThreadProcGraviti
i.e. the full qualification with 'Tetra::' is required, just like the
address-of operator. Yes, there are compilers that don't check this
requirement, but most modern ones do.
Uli
More information about the SDL
mailing list