add the copyctor feature/directive to enable automatic copy constructors. In the way, fix how default ctor/dtor are added

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-30 00:04:00 +00:00
commit 381596b0f3
8 changed files with 231 additions and 123 deletions

View file

@ -80,6 +80,9 @@ namespace std {
protected:
basic_streambuf();
private:
basic_streambuf(const basic_streambuf&);
};
}

View file

@ -63,10 +63,10 @@
#define %defaultdtor %feature("nodefaultdtor","0")
#define %clearnodefaultdtor %feature("nodefaultdtor","")
/* Disable the generation of copy constructor */
#define %nocopyctor %feature("nocopyctor","1")
#define %copyctor %feature("nocopyctor","0")
#define %clearnocopyctor %feature("nocopyctor","")
/* Enable the generation of copy constructor */
#define %copyctor %feature("copyctor","1")
#define %nocopyctor %feature("copyctor","0")
#define %clearcopyctor %feature("copyctor","")
/* Force the old nodefault behavior, ie disable both constructor and destructor */
#define %oldnodefault %feature("oldnodefault","1")

View file

@ -155,6 +155,7 @@
}
}
/* memberin/globalin/varin, for fix double arrays. */
%typemap(memberin) SWIGTYPE [ANY][ANY] {