[pygccxml-development] Wrapping abstract C++ classes
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2007-05-05 17:29:28
|
Is it possible to wrap a C++ class that has pure virtual functions? I am getting a compilation error below; what should I do? PS: those pure virtual methods are being exclud()ed by me. /usr/include/boost/python/object/value_holder.hpp:66: error: cannot declare field 'boost::python::objects::value_holder<Queue_wrapper>::m_held' to be of abstract type 'Queue_wrapper' debug/bindings/python/ns3.cpp:58: note: because the following virtual functions are pure within 'Queue_wrapper': ./debug/ns3/queue.h:91: note: virtual bool ns3::Queue::DoEnqueue(const ns3::Packet&) ./debug/ns3/queue.h:92: note: virtual bool ns3::Queue::DoDequeue(ns3::Packet&) ./debug/ns3/queue.h:93: note: virtual bool ns3::Queue::DoPeek(ns3::Packet&) Compilation failed -- Gustavo J. A. M. Carneiro "The universe is always one step beyond logic." -- Frank Herbert |