Re: Problem with generic member
fasbjx@libertysurf.fr,
What is it with that empty template template<>?
fasbjx@libertysurf.fr (fasbjx@libertysurf.fr) said thusly on [28/07/01 at 02:54]:
>
> >Environment:
> System: Linux alpha.tchume.net 2.4.4 #2 mar mai 22 08:16:07 CEST 2001 i586 unknown
> Architecture: i586
>
>
> host: i386-pc-linux-gnu
> build: i386-pc-linux-gnu
> target: i386-pc-linux-gnu
> configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-x --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
> >Description:
>
> The following code:
>
> enum X { L };
>
> template< X x >
> struct Sa { enum E {}; };
>
>
> template< X x >
> struct Sb {
> template< Sa< x >::E e >
> class C;
> };
>
> template<>
> struct Sb< L > {
> template< Sa< L >::E e >
> struct D: public Sb< anything >::C;
> };
>
> don't compile. From codesourcery:
>
>
"What is past is prologue." (William Shakespeare)
Reply to: