fix for ruby,perl and others with no std::vector class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0e217ce9fb
commit
ae8e5fbe73
1 changed files with 19 additions and 2 deletions
|
|
@ -68,6 +68,8 @@ public:
|
|||
%template(Bard) Bar<double>;
|
||||
|
||||
|
||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGUTL)
|
||||
|
||||
|
||||
%include "std_vector.i"
|
||||
|
||||
|
|
@ -75,10 +77,21 @@ public:
|
|||
SWIG_STD_VECTOR_SPECIALIZE_MINIMUM(Flow, Space::Flow)
|
||||
#endif
|
||||
|
||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON)
|
||||
#define SWIG_GOOD_VECTOR
|
||||
%ignore std::vector<Space::Flow>::vector(size_type);
|
||||
%ignore std::vector<Space::Flow>::resize(size_type);
|
||||
#endif
|
||||
|
||||
#if defined(SWIGTCL) || defined(SWIGPERL) || defined(SWIGRUBY)
|
||||
#define SWIG_GOOD_VECTOR
|
||||
/* here, for languages with bad declaration */
|
||||
%ignore std::vector<Space::Flow>::vector(unsigned int);
|
||||
%ignore std::vector<Space::Flow>::resize(unsigned int);
|
||||
#endif
|
||||
|
||||
%copyctor;
|
||||
|
||||
%ignore std::vector<Space::Flow>::vector(size_type);
|
||||
%ignore std::vector<Space::Flow>::resize(size_type); //Ignore as Flow does not have a default constructor
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
@ -92,3 +105,7 @@ public:
|
|||
%}
|
||||
|
||||
%template (VectFlow) std::vector<Space::Flow>;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue