define Flow as in the original bug report and add in usual C# workaround for vectors of classes in a namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8848 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6b6147f03b
commit
4bfc884b6d
1 changed files with 6 additions and 6 deletions
|
|
@ -71,21 +71,21 @@ public:
|
||||||
|
|
||||||
%include "std_vector.i"
|
%include "std_vector.i"
|
||||||
|
|
||||||
|
#if defined(SWIGCSHARP)
|
||||||
|
SWIG_STD_VECTOR_SPECIALIZE_MINIMUM(Flow, Space::Flow)
|
||||||
|
#endif
|
||||||
|
|
||||||
%copyctor;
|
%copyctor;
|
||||||
|
|
||||||
%ignore std::vector<Space::Flow>::vector(size_type);
|
%ignore std::vector<Space::Flow>::vector(size_type);
|
||||||
%ignore std::vector<Space::Flow>::resize(size_type);
|
%ignore std::vector<Space::Flow>::resize(size_type); //Ignore as Flow does not have a default constructor
|
||||||
//Ignore as Flow does not have a default constructor
|
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
namespace Space {
|
namespace Space {
|
||||||
class Flow {
|
class Flow {
|
||||||
public:
|
public:
|
||||||
Flow(int i = 0) {}
|
Flow(int i) {}
|
||||||
Flow(const Flow& other) {}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue