remove test - explicitcall feature was removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
37a08a2b03
commit
4f85aa29de
1 changed files with 0 additions and 49 deletions
|
|
@ -1,49 +0,0 @@
|
|||
%module(directors="1") explicitcall
|
||||
|
||||
%include <std_string.i>
|
||||
|
||||
%director;
|
||||
|
||||
%explicitcall;
|
||||
%feature("explicitcall", suffix="Bambino") Space::GrandChild::talk;
|
||||
|
||||
%inline %{
|
||||
|
||||
#include <string>
|
||||
namespace Space {
|
||||
struct Person {
|
||||
Person() {}
|
||||
virtual std::string talk() { return "Person"; }
|
||||
virtual ~Person() {}
|
||||
};
|
||||
|
||||
struct Child : Person {
|
||||
void nonvirtual() {}
|
||||
virtual std::string talk () { return "Child"; }
|
||||
};
|
||||
|
||||
struct GrandChild : Child {
|
||||
virtual std::string talk() { return "GrandChild"; }
|
||||
};
|
||||
}
|
||||
%}
|
||||
|
||||
%cleardirector;
|
||||
|
||||
// a template and default parameters test
|
||||
%inline %{
|
||||
template<class T> class Template {
|
||||
public:
|
||||
virtual ~Template(){}
|
||||
virtual T bar(const int &t = int(20)) const { return "Template"; }
|
||||
};
|
||||
%}
|
||||
|
||||
%template(TemplateString) Template<std::string>;
|
||||
|
||||
%inline %{
|
||||
struct TDerived : Template<std::string> {
|
||||
virtual std::string bar(const int &t = int(20)) const { return "TDerived"; }
|
||||
};
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue