Fix shared_ptr typemaps for use with %pythonnondynamic

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-04-04 23:29:59 +00:00
commit 69d6ce4f33
5 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,20 @@
from li_boost_shared_ptr_bits import *
def check(nd):
nd.i = 200
i = nd.i
try:
nd.notexist = 100
passed = 0
except:
passed = 1
if not passed:
raise "Test failed"
nd = NonDynamic()
check(nd)
b = boing(nd)
check(b)