/trunk/Examples/test-suite/template_typedef_cplx5.i
Swig | 22 lines | 14 code | 8 blank | 0 comment | 0 complexity | 8dbafb661cd810145dfd406fd8ccc543 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module template_typedef_cplx5
- %{
- #include <complex>
- %}
- %inline %{
- // This typedef triggers an inifinite recursion
- // in the next test1() nd test2() function declarations
- typedef std::complex<double> complex;
- struct A
- {
- complex test1() { complex r; return r; }
- std::complex<double> test2() { std::complex<double> r; return r; }
- };
-
- %}