[Insight-developers] Lots of new warnings: Adding an alternative GetInverse() method to the transform hierarchy.

Douglas Alan doug at alum.mit.edu
Sat Jun 28 16:29:45 EDT 2008


Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:

> I thought that SmartPointers should be used as output of a method only
> if really needed, and must not be used as input.

In this case, the argument is being used as an output, not as an input.
I'm not sure why ITK would want to take this approach.  In my mind, it's
*always* better to return values as retvals, rather than through "inout"
arguments if at all possible.  On the other hand, I'm probably the
*last* person anyone should consult on the subtleties of ITK
architecture.

|>oug


More information about the Insight-developers mailing list