Inheriting from a templated class

Phlox Icon <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
I have a strange C++ class that uses the following class definition template
<class BASE_NPC> class CAI_ExpresserHost : public BASE_NPC, protected
CAI_ExpresserSink { ... } I really don't know how to bind this. I tried just
throwing in a template to my luabind definition function template <class
BASE_NPC> // i have no better ideas than doing this void LuaHandle::Init() {
luabind::open( GetLua() ); luabind::module( GetLua() ) [ ...
luabind::class_<CAI_ExpresserHost, luabind::bases<BASE_NPC,
CAI_ExpresserSink>>( "CAI_ExpresserHost" ), ... } but then that makes my
class abstract and generates the following error new LuaHandle(); // causes
errornew LuaHandle<CAI_BaseNPC>(); // also causes error 1> 'LuaHandle' :
cannot instantiate abstract class 1> due to following members: 1> 'void
LuaHandleBase::Init(void)' : is abstract I'm completely stumped. How can I
bind this class so that it inherits everything it needs? Regards.P.S. I have
bound many classes before but just none like this.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.