diff --git a/src/include/stir/RegisteredParsingObject.h b/src/include/stir/RegisteredParsingObject.h index 64c821fa3..b5b004515 100644 --- a/src/include/stir/RegisteredParsingObject.h +++ b/src/include/stir/RegisteredParsingObject.h @@ -77,7 +77,11 @@ template class RegisteredParsingObject : public Parent { public: +#ifndef SWIG + // import constructors from Parent + // Note: currently disabled for SWIG as that needs SWIG 4.2 using Parent::Parent; +#endif //! Construct a new object (of type Derived) by parsing the istream /*! When the istream * is 0, questions are asked interactively. @@ -95,6 +99,7 @@ class RegisteredParsingObject : public Parent inline std::string parameter_info() override; public: +#ifndef SWIG //! A helper class to allow automatic registration. struct RegisterIt { @@ -113,18 +118,19 @@ class RegisteredParsingObject : public Parent */ ~RegisterIt() { -#if 0 +# if 0 // does not work yet, as registry might be destructed before this // RegisterIt object. A solution to this problem is coming up. cerr << "In RegisterIt destructor for " << Derived::registered_name<& current_image_estimate) override;