[Insight-developers] Functor/Function madness

Brad King brad.king at kitware.com
Fri Sep 16 17:20:21 EDT 2005


Miller, James V (Research) wrote:
> It was just pointed out to me that a number of our Functor classes are 
> mistakenly in the Function namespace and not in the Functor namespace.
> 
> This is confusing to the users, particularly those who are navigating 
> the code with doxygen.
> 
> I am not sure that we can move the functors to the correct namespace and 
> maintain backward compatibility. Any thoughts?

I have not checked whether this compiles on all our compilers but you 
could do this:

namespace Functor
{
   class A;
}

namespace Function
{
   using ::itk::Functor::A;
}

and leave the second one out of the documentation.

-Brad


More information about the Insight-developers mailing list