aboutsummaryrefslogtreecommitdiff
path: root/Lib/ruby/std_complex.i
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ruby/std_complex.i')
-rw-r--r--Lib/ruby/std_complex.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/ruby/std_complex.i b/Lib/ruby/std_complex.i
index dacbea2bb..ef4e8a104 100644
--- a/Lib/ruby/std_complex.i
+++ b/Lib/ruby/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)