From 290a7da24c54dc19fadc3f2ccc9e4dff3b5e10f5 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 14 Jan 2006 21:23:09 +0000 Subject: [PATCH] fix extend constructor + default destructor git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8433 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allocate.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index 4be80dd46..8c03b1137 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -850,7 +850,11 @@ public: if (cplus_mode == PUBLIC) { Setattr(inclass,"allocate:public_constructor","1"); } + } else { + Setattr(inclass,"allocate:has_constructor","1"); + Setattr(inclass,"allocate:public_constructor","1"); } + /* See if this is a copy constructor */ if (parms && (ParmList_numrequired(parms) == 1)) {