~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/template_static.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
%template(foo_i) foo<int>;
15
15
%template(foo_d) foo<double>;
16
16
 
 
17
 
 
18
%inline %{
 
19
namespace toto {
 
20
  class Foo {
 
21
  public:
 
22
      template<class T>
 
23
      static double bar(int i) {
 
24
        return 1.0;
 
25
      };
 
26
 
 
27
    private:
 
28
      int i;
 
29
  };
 
30
 
31
%}
 
32
 
 
33
%template(bar_double) toto::Foo::bar<double>;