dwww Home | Show directory contents | Find package

%module smart_pointer_protected

%inline %{

  namespace hi
  {    
    struct A 
    {
      virtual ~A() { }
      virtual int value(A*) = 0;
      int index;
    };    
    
    struct B : A 
    {
    protected:
      int value(A*)
      {
        return 1;
      }
    };

    struct C
    {
      hi::B* operator->() const { return new hi::B(); }
    private:
      int index;
    };
  }
  

%}

Generated by dwww version 1.15 on Tue Jul 2 00:20:23 CEST 2024.