added the now explicitly needed macro:
#define SWIG_STD_EXTEND_COMPARISON note: you don't need this one for most of the cases git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ab44291de8
commit
811a5065c3
2 changed files with 10 additions and 2 deletions
|
|
@ -1,5 +1,10 @@
|
|||
%module lib_std_pair
|
||||
|
||||
//
|
||||
// activate the automatic comparison methods generation (==,!=,...)
|
||||
//
|
||||
#define SWIG_STD_EXTEND_COMPARISON
|
||||
|
||||
%include std_pair.i
|
||||
%include std_string.i
|
||||
%include std_complex.i
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
%module std_containers
|
||||
|
||||
//
|
||||
// activate the automatic comparison methods generation (==,!=,...)
|
||||
//
|
||||
#define SWIG_STD_EXTEND_COMPARISON
|
||||
|
||||
%include std_vector.i
|
||||
%include std_string.i
|
||||
%include std_deque.i
|
||||
|
|
@ -11,11 +16,9 @@
|
|||
%include std_multimap.i
|
||||
%include std_complex.i
|
||||
|
||||
#ifndef SWIG_STD_DEFAULT_INSTANTIATION
|
||||
%template() std::vector<double>;
|
||||
%template() std::pair<std::string, int>;
|
||||
%template() std::pair<int,double>;
|
||||
#endif
|
||||
|
||||
%template() std::vector< std::vector<double > > ;
|
||||
%template(ccube) std::vector< std::vector< std::vector<double > > >;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue