/branches/gsoc2009-ashishs99/Examples/test-suite/enum_scope_template.i
# · Swig · 20 lines · 14 code · 6 blank · 0 comment · 0 complexity · 772f8ccc83f2b253b73d2f43574bf5ea MD5 · raw file
- %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>;