[Insight-developers] Const Missing in inputs for Process Object
Luis Ibanez
luis.ibanez@kitware.com
Sat, 23 Mar 2002 11:23:30 -0500
Hi,
The array of inputs for Process Object is not const-correct.
In principle there is no reason for a filter to modify its input
so the input should be stored as ConstSmartPointers.
Currently this is done using just SmartPointers.
This constness-defect is propagated through all the Filters
which basically means that you cannot pass a const image
as input to any filter. :-/
Does anybody see a conflict in making the array of m_Inputs
in itk::ProcessObject an array of SmartConstPointers ?
Luis