blob: edf679568f80abaf3dff6cc97d89073c26594272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
%module template_forward
%{
namespace foo {
template<class T> class bar { };
}
%}
namespace foo {
template<class T> class bar;
};
%inline %{
namespace foo {
double test1(const bar<double> &x) { return 0; }
bar<double> test2() {
return bar<double>();
}
}
%}
|