From: Colin M. <cjm...@qi...> - 2006-05-04 16:06:17
|
Swig 1.3.29 appears to have a problem with overloaded virtual methods when -fvirtual (or -O) is specified. Generate Tcl wrappers from the following example interface file, using: swig -tcl -c++ -fvirtual test.i The resulting wrappers only allow access to the second Switch::addChild method, and not the first. Regards Colin McDonald =============================================================== %module test class Node { public: Node(); virtual bool addChild( Node *child ); protected: virtual ~Node(); }; class Switch : public Node { public : Switch(); virtual bool addChild( Node *child ); virtual bool addChild( Node *child, bool value ); protected : virtual ~Switch(); }; |