better STL support, see CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
958c18a14c
commit
1d5529bcfc
25 changed files with 3572 additions and 4193 deletions
|
|
@ -3,23 +3,21 @@
|
|||
|
||||
%include "complex_common.i"
|
||||
|
||||
|
||||
%{
|
||||
#include <complex>
|
||||
%}
|
||||
|
||||
/* defining the complex as/from converters */
|
||||
|
||||
%swig_cplxdbl_conv(std::complex<double>, StdCplxDbl,
|
||||
std::complex<double>, std::real, std::imag)
|
||||
%swig_cplxdbl_convn(std::complex<double>,
|
||||
std::complex<double>, std::real, std::imag)
|
||||
|
||||
%swig_cplxflt_conv(std::complex<float>, StdCplxFlt,
|
||||
std::complex<float>, std::real, std::imag)
|
||||
%swig_cplxflt_convn(std::complex<float>,
|
||||
std::complex<float>, std::real, std::imag)
|
||||
|
||||
/* declaring the typemaps */
|
||||
|
||||
%typemap_stype(std::complex<double>, CPLXDBL, StdCplxDbl);
|
||||
%typemap_stype(std::complex<float>, CPLXFLT, StdCplxFlt);
|
||||
%typemap_primitive(SWIG_CCode(CPLXDBL), std::complex<double>);
|
||||
%typemap_primitive(SWIG_CCode(CPLXFLT), std::complex<float>);
|
||||
|
||||
|
||||
#endif //SWIG_STD_COMPLEX_I_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue