[Insight-developers] new clang compile errors since Aug 26

Sean McBride sean at rogue-research.com
Wed Aug 31 15:03:59 EDT 2011


On Wed, 31 Aug 2011 11:49:59 -0400, Bill Lorensen said:

>They all look like errors after the changes to itkVectorContainer. They
>claim that
> using STLContainerType::reference;
>should be:
> using typename STLContainerType::reference;
>
>but, I'm not sure all of our compilers support that.
>
>Can you make the typename changes on your local build and see if clang is
>happy?

Adding 'typename' to that one, and the following 10 'using' statements "fixes" the problem.  Everything then compiles.


On Wed, 31 Aug 2011 17:55:17 +0000, Williams, Norman K said:

>I think this is a CLang problem.  'typename' doesn't really make sense,
>because the 'using' is there to expose the parent class method.

What we need is a C++ language lawyer. :)  If one of you could create a snippit that repros the same compiler error, I can ask on the clang list.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list