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

%inline %{
  template <class T> class Foo {
  public: 
    T bar() { return T(); }  
    T* baz() { return 0; } 
  };

  template <class T> class Foo<T*> {
  public: 
    T bar() { return T(); }
    T* baz() { return 0; }
  };

  class Bar {};
%}

%template(Foo1) Foo<Bar>;
%template(Foo2) Foo<Bar*>;