blob: b6b156bd7aa1b46efd8ed54160be31e28654d963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
%module enum_scope_template
#ifdef SWIGPHP
// php internal naming conflict
%rename (chops) chop;
#endif
%inline %{
template<class T> class Tree {
public:
enum types {Oak, Fir, Cedar};
void chop(enum types type) {}
};
enum Tree<int>::types chop(enum Tree<int>::types type) { return type; }
%}
%template(TreeInt) Tree<int>;
|