Fix for languages that don't have %shared_ptr macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
568607c5ea
commit
53ad9822f5
1 changed files with 4 additions and 0 deletions
|
|
@ -54,8 +54,12 @@ int sum(std::vector< boost::shared_ptr<IntHolder> > v) {
|
|||
// Bug 3024875
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
#if defined(SHARED_PTR_WRAPPERS_IMPLEMENTED)
|
||||
|
||||
%shared_ptr(HiddenDestructor)
|
||||
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
class HiddenDestructor;
|
||||
typedef boost::shared_ptr< HiddenDestructor > FooPtr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue