]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix: SWIG std::list<std::shared_ptr<GeomAPI_Shape>> problem Dev_1.2.0
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 1 Jun 2015 11:12:57 +0000 (14:12 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 1 Jun 2015 11:12:57 +0000 (14:12 +0300)
src/GeomAlgoAPI/GeomAlgoAPI.i

index f53434b4cd31a7f7ba6364589be72b606fccc8ca..fc6f1b6ce5890925be07899cdcfa3dbe7c120e67 100644 (file)
@@ -41,4 +41,7 @@
 %include "GeomAlgoAPI_ShapeProps.h"
 %include "GeomAlgoAPI_SketchBuilder.h"
 
-%template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;
\ No newline at end of file
+%typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
+  $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
+}
+%template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;