diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index 0d99710255..e4b3abb52d 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -47,7 +47,7 @@ %typemap(in) IfcEntities { if (PySequence_Check($input)) { - $1 = std::make_shared(); + $1 = SHARED_PTR(new IfcEntityList()); for(Py_ssize_t i = 0; i < PySequence_Size($input); ++i) { PyObject* obj = PySequence_GetItem($input, i); if (obj) {