more fixes and cases for smart pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d6802c75ba
commit
533b36c15d
5 changed files with 12 additions and 10 deletions
|
|
@ -8,7 +8,9 @@
|
|||
static int hello()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
int x;
|
||||
static const int z = 1;
|
||||
};
|
||||
|
||||
class CDerived : public CBase
|
||||
|
|
@ -29,7 +31,7 @@
|
|||
class CPtrConst
|
||||
{
|
||||
public:
|
||||
CDerived* operator->(void) const {return 0;};
|
||||
const CDerived* operator->() const {return 0;};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
Foo *f;
|
||||
public:
|
||||
CBar(Foo *f) : f(f) { }
|
||||
Foo *operator->() const {
|
||||
const Foo *operator->() {
|
||||
return f;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue