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:
Marcelo Matus 2004-04-02 02:44:34 +00:00
commit 811a5065c3
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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 > > >;