Hello,
I'm pretty new to luabind. I'm having a little problem binding one of my string functions(convert to uppercase). Just couldn't figure it out.
[source]void STools::UCase(char *txt)
{
for (;;)
{
u_int32 t = *reinterpret_cast(txt);
...
txt++;
}
}
[/source]
Here's the luabind code
[source]luabind::module(myLuaState) [
luabind::def("convert_upper", STools::UCase)
]; [/source]
Compiler Error
[source]error C2664: 'void (char *)' : cannot convert parameter 1 from 'const char *' to 'char *' [/source]
Any help is appreciated!