/trunk/Examples/test-suite/template_arg_replace.i
# · Swig · 14 lines · 9 code · 5 blank · 0 comment · 0 complexity · 06d4ec569922438a0eb24f641ec2a145 MD5 · raw file
- %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>;