Add std::vector back reference test
This commit is contained in:
parent
f19882ed51
commit
9038a9987d
3 changed files with 25 additions and 0 deletions
14
Examples/test-suite/li_std_vector_back_reference.i
Normal file
14
Examples/test-suite/li_std_vector_back_reference.i
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
%module li_std_vector_back_reference
|
||||
|
||||
%include <std_vector.i>
|
||||
|
||||
%inline %{
|
||||
// #include <iostream>
|
||||
struct Wheel {
|
||||
int size;
|
||||
Wheel(int sz = 0) : size(sz) {}
|
||||
// ~Wheel() { std::cout << "~Wheel" << std::endl; }
|
||||
};
|
||||
%}
|
||||
|
||||
%template(VectorWheel) std::vector<Wheel>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue