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@8129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4cf6ff94cd
commit
901bb6d73b
8 changed files with 231 additions and 123 deletions
|
|
@ -80,6 +80,9 @@ namespace std {
|
|||
protected:
|
||||
basic_streambuf();
|
||||
|
||||
private:
|
||||
basic_streambuf(const basic_streambuf&);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* memberin/globalin/varin, for fix double arrays. */
|
||||
|
||||
%typemap(memberin) SWIGTYPE [ANY][ANY] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue