diff options
Diffstat (limited to 'Lib/javascript/jsc/std_complex.i')
-rw-r--r-- | Lib/javascript/jsc/std_complex.i | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/javascript/jsc/std_complex.i b/Lib/javascript/jsc/std_complex.i index 088a4fe7b..a252e0aa8 100644 --- a/Lib/javascript/jsc/std_complex.i +++ b/Lib/javascript/jsc/std_complex.i @@ -8,6 +8,13 @@ #include <complex> %} +namespace std { + %naturalvar complex; + template<typename T> class complex; + %template() complex<double>; + %template() complex<float>; +} + /* defining the complex as/from converters */ %swig_cplxdbl_convn(std::complex<double>, std::complex<double>, std::real, std::imag) |