Open N-Dekker opened 1 month ago
I think this pull request may also be merged now, as v5.4.0 has been tagged (https://github.com/InsightSoftwareConsortium/ITK/pull/4603#issuecomment-2120498131)
ProcessObject::MakeRequiredOutputs(*this, 1)
instead, following pull request #4688
In those cases,
MakeOutput(0)
just didOutputType::New()
anyway. This commit avoids unnecessary casts and calls to virtual functions.Following C++ Core Guidelines, February 15, 2024, "Don’t call virtual functions in constructors and destructors", https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-ctor-virtual
Intended for after the release of ITK v5.4.0