summaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_ns3.i
blob: 8df02806d90e3a4036a6f8b136d1b53c5464fb6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%module template_ns3

%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo::bar<int>; /* Ruby, wrong class name */

%inline %{
namespace foo {
   typedef int Integer;

   template<class T> class bar {
   public:
       Integer test(Integer x) { return x; }
   };

}
%}

%template(bari) foo::bar<int>;