dwww Home | Show directory contents | Find package

/* This testcase checks whether SWIG correctly uses the new 'decltype()'
   introduced in C++11.
*/
%module cpp11_decltype

%inline %{
  class A {
  public:
    int i;
    decltype(i) j;

    auto foo( decltype(i) a ) -> decltype(i) {
      if (a==5)
        return 10;
      else
        return 0;
    }
  };
  %}

Generated by dwww version 1.15 on Tue Jul 2 00:30:14 CEST 2024.