Void * as parameter ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Void * as parameter ?

Aurélien MAIGNAN
Hi,
I have a function like this to bind :

class MaClass{
static void staticUpdatePos(void * myThis, int& id, mstring name);
};

(using this :
luabind::class_<MaClass>("ScriptingApp")
.def("staticUpdatePos", &MaClass::staticUpdatePos)
)

but i get this kind of error :
LuaBind\References\luabind\include\luabind/detail/policy.hpp(530) : error C2070: 'void': illegal sizeof operand

seems it doesn't want the void* as parameter but here is used as a standard callback function ...

Thanks for any help, can be more precise if needed ;)

Aurélien MAIGNAN


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user