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
I have a function like this to bind :

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

(using this :
.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.
luabind-user mailing list
[hidden email]