we better disable the comparison method generation by default.
reasons: - before they were not generated, so, nobody will miss them, and still they can be activated back using SWIG_STD_EXTEND_COMPARISON, - the performance penalty is quite visible, and the solution is not general, ie, for user types, still they need to be generated by hand. Marcelo git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
87df1f880e
commit
ab44291de8
9 changed files with 13 additions and 12 deletions
|
|
@ -155,6 +155,6 @@ namespace std {
|
|||
%std_definst(vector, __VA_ARGS__);
|
||||
%enddef
|
||||
|
||||
#if !defined(SWIG_STD_NOEXTEND_COMPARISON) || defined(SWIG_STD_DEFAULT_INSTANTIATION)
|
||||
#if defined(SWIG_STD_EXTEND_COMPARISON) || defined(SWIG_STD_DEFAULT_INSTANTIATION)
|
||||
%apply_cpptypes(%std_vector_ptypen);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue