4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int>; /* Ruby, wrong class name */
5 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<double>; /* Ruby, wrong class name */
6 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) vector<int (*)[10]>; /* Ruby, wrong class name */
8 /* Let's just grab the original header file here */
18 template<class T> T max(const T a, const T b) { return a>b ? a : b; }
20 template<class T> class vector {
31 void set(int index, T &val) {
34 // This really doesn't do anything except test const handling
35 void testconst(const T x) { }
40 /* Now instantiate some specific template declarations */
42 %template(maxint) max<int>;
43 %template(maxdouble) max<double>;
44 %template(vecint) vector<int>;
45 %template(vecdouble) vector<double>;
47 /* Now try to break constness */
49 %template(maxintp) max<int (*)[10]>;
50 %template(vecintp) vector<int (*)[10]>;