Python - fix compilation error when using -extranative and -builtin.
Closes #816
This commit is contained in:
parent
20cd562e62
commit
bdda0a0829
5 changed files with 32 additions and 1 deletions
16
Examples/test-suite/python_extranative.i
Normal file
16
Examples/test-suite/python_extranative.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%module(extranative="1") python_extranative
|
||||
|
||||
%include <std_vector.i>
|
||||
%include <std_string.i>
|
||||
|
||||
%template(VectorString) std::vector<std::string>;
|
||||
|
||||
%inline %{
|
||||
std::vector<std::string> make_vector_string() {
|
||||
std::vector<std::string> vs;
|
||||
vs.push_back("one");
|
||||
vs.push_back("two");
|
||||
return vs;
|
||||
}
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue