blob: 3100a021ef5dcb69abae36ea5a3ba0c419b684e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
%module smart_pointer_const
%inline %{
struct Foo {
int x;
int getx() const { return x; }
};
class Bar {
Foo *f;
public:
Bar(Foo *f) : f(f) { }
Foo *operator->() {
return f;
}
};
%}
|