PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/template_typedef_cplx5.i

#
Swig | 22 lines | 14 code | 8 blank | 0 comment | 0 complexity | 8dbafb661cd810145dfd406fd8ccc543 MD5 | raw file
 1%module template_typedef_cplx5
 2
 3%{
 4#include <complex>
 5%}
 6
 7
 8%inline %{
 9
10  // This typedef triggers an inifinite recursion
11  // in the next test1() nd test2() function declarations
12
13  typedef std::complex<double> complex;  
14
15  struct A 
16  {
17    complex test1() { complex r; return r; }
18    std::complex<double> test2() { std::complex<double> r; return r; }
19  };
20  
21%}
22