/trunk/Examples/test-suite/template_ns3.i
# · Swig · 21 lines · 12 code · 9 blank · 0 comment · 0 complexity · 0121db4377cfbd29452d2fa5f3a1ab52 MD5 · raw file
- %module template_ns3
- %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo::bar<int>; /* Ruby, wrong class name */
- %inline %{
- namespace foo {
- typedef int Integer;
- template<class T> class bar {
- public:
- Integer test(Integer x) { return x; }
- };
- }
- %}
- %template(bari) foo::bar<int>;