PageRenderTime 52ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  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. %}