disable copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
12a429f555
commit
d812f5fe5e
5 changed files with 54 additions and 60 deletions
|
|
@ -570,7 +570,8 @@ public:
|
|||
/* If class is abstract. No default constructor. Sorry */
|
||||
if (Getattr(n,"abstract")) {
|
||||
Delattr(n,"allocate:default_constructor");
|
||||
} else if (!Getattr(n,"allocate:default_constructor")) {
|
||||
}
|
||||
if (!Getattr(n,"allocate:default_constructor")) {
|
||||
/* Check base classes */
|
||||
List *bases = Getattr(n,"allbases");
|
||||
int allows_default = 1;
|
||||
|
|
@ -588,7 +589,10 @@ public:
|
|||
}
|
||||
}
|
||||
if (!Getattr(n,"allocate:has_copy_constructor")) {
|
||||
if (!Getattr(n,"allocate:copy_constructor") && !Getattr(n,"abstract")) {
|
||||
if (Getattr(n,"abstract")) {
|
||||
Delattr(n,"allocate:copy_constructor");
|
||||
}
|
||||
if (!Getattr(n,"allocate:copy_constructor")) {
|
||||
/* Check base classes */
|
||||
List *bases = Getattr(n,"allbases");
|
||||
int allows_copy = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue