aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/smart_pointer_inherit.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/smart_pointer_inherit.i')
-rw-r--r--Examples/test-suite/smart_pointer_inherit.i5
1 files changed, 4 insertions, 1 deletions
diff --git a/Examples/test-suite/smart_pointer_inherit.i b/Examples/test-suite/smart_pointer_inherit.i
index 52df5a92b..26987a5ac 100644
--- a/Examples/test-suite/smart_pointer_inherit.i
+++ b/Examples/test-suite/smart_pointer_inherit.i
@@ -70,7 +70,10 @@ class ItkVectorContainerUILSNUS2 : public std::vector< ItkLevelSetNodeUS2 > {
class ItkVectorContainerUILSNUS2_Pointer {
public:
- ItkVectorContainerUILSNUS2 * operator->() const { return 0; }
+ ItkVectorContainerUILSNUS2 * operator->() const {
+ static ItkVectorContainerUILSNUS2 instance;
+ return &instance;
+ }
};
%}