/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/template_arg_scope.i

# · Swig · 16 lines · 12 code · 4 blank · 0 comment · 0 complexity · 9b4bdcca834c2a18fac09e5e5520334f MD5 · raw file

  1. %module template_arg_scope
  2. %inline %{
  3. template<class T> class Foo {
  4. };
  5. class Bar {
  6. public:
  7. Bar();
  8. void spam(Foo<Bar> *x);
  9. };
  10. Bar::Bar() {}
  11. void Bar::spam(Foo<Bar> *x) {}
  12. %}