diff options
Diffstat (limited to 'Examples/test-suite/template_arg_replace.i')
| -rw-r--r-- | Examples/test-suite/template_arg_replace.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/test-suite/template_arg_replace.i b/Examples/test-suite/template_arg_replace.i new file mode 100644 index 0000000..25274c9 --- /dev/null +++ b/Examples/test-suite/template_arg_replace.i @@ -0,0 +1,14 @@ +%module template_arg_replace + +%warnfilter(SWIGWARN_RUBY_WRONG_NAME) test_Matrix<float, 3, 3>; /* Ruby, wrong class name */ + +%inline %{ + +template <typename T, int r, int c> class test_Matrix { +public: + void Func(const test_Matrix<T,r,c> &m) { }; +}; +%} + +%template (matrix33f) test_Matrix<float,3, 3>; + |
