Add testcase for %attributestring on shared_ptr

This commit is contained in:
William S Fulton 2014-01-11 13:15:44 +00:00
commit 07ce3fb746
4 changed files with 89 additions and 1 deletions

View file

@ -130,6 +130,9 @@
};
%}
The %attributestring also works for class types that have %naturalvar turned
on and so is also useful for shared_ptr which has %naturalvar turned on in %shared_ptr.
*/
//
@ -275,7 +278,7 @@
%ignore Class::GetMethod();
%ignore Class::GetMethod() const;
%newobject Class::AttributeName;
%typemap(newfree) const AttributeType &AttributeName "delete $1;// my newfree override"
%typemap(newfree) const AttributeType &AttributeName "delete $1;"
%extend Class {
AttributeType AttributeName;
}