avoid using reference value for static members, since it can generate unresolved symbols for static const
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
417e339ba3
commit
d6802c75ba
3 changed files with 20 additions and 4 deletions
|
|
@ -1147,7 +1147,12 @@ Swig_MembergetToFunction(Node *n, String *classname, int flags) {
|
|||
varref = flags & CWRAP_VAR_REFERENCE;
|
||||
|
||||
if (flags & CWRAP_SMART_POINTER) {
|
||||
self = NewString("(*this)->");
|
||||
if (checkAttribute(n, "storage", "static")) {
|
||||
String *base = Getattr(n,"classname");
|
||||
self = NewStringf("%s::", base);
|
||||
} else {
|
||||
self = NewString("(*this)->");
|
||||
}
|
||||
}
|
||||
|
||||
name = Getattr(n,"name");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue