[Insight-developers] new clang compile errors since Aug 26
Sean McBride
sean at rogue-research.com
Tue Sep 13 10:34:00 EDT 2011
On Tue, 13 Sep 2011 09:23:53 +0200, Tom Vercauteren said:
>It looks like the legit declaration* should be
> using typename TemplatedType<T>::Type;
>and NOT
> using TemplatedType<T>::Type;
>
>Hence, clang seems right here. If other compilers do not support this
>construction, why not simply use a typedef in this case?
> typedef typename TemplatedType<T>::Type Type;
>
>All compilers supported by ITK should support this typedef.
>
>My two cents,
>Tom
>
>*: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#11
>http://stackoverflow.com/questions/1071119/c-accessing-types-from-
>dependent-base-classes
>http://llvm.org/bugs/show_bug.cgi?id=10725
Bradley, Tom,
Nice digging!
I created this patch:
<http://review.source.kitware.com/2769>
Do I recall correctly that such things can be auto-complied, so we can see if other compilers support this formulation?
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