Deriving inherited classes with Luabind
Michael Gulak <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
So if I have a class structure in C++ as follows
class A
{
virtual void f();
};
class B : public A
{
};
class C : public B
{
};
And I want to set up a wrapper so I can derive classes from A and B in Lua,
how exactly should I go about that? I can get it to work properly with just
the wrapper for A, but I don't know how to do it for the child classes. If,
in the luabind defs, I use luabind::bases<A, WrapperA>, it crashes. Thanks.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user