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

%inline %{
class SomeClass{ }; 
 
template<class T>  
class Handle { 
public: 
    Handle( T* t=0 ) { };   
    // ... 
}; 
 
typedef Handle<SomeClass> hSomeClass; 
class AnotherClass { 
public: 
  void someFunc( hSomeClass a = hSomeClass() ) { }; 
}; 

%}

%template() Handle<SomeClass>;