problem with binding operator
martin nilsen <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Just starting Luabinding and run into some problems with () operators,
havent read anything about luabind not supporting those.
struct Str8 // Text String (8-bit per character)
{
// get
operator CChar8*()C {return _d.data();} // cast to CChar8*
CChar8* operator()( )C {return _d.data();} // get text data
void LuaString8(lua_State *L)
{
module(L)
[
luabind::class_<Str8>("Str8")
.def(CChar8*())
error C2059: syntax error : ')'
--
Later
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d