This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs1.1 : nested template template parameter


Martin von Loewis wrote :
>>       template< template< template<class> class > class Tmpl> A {}; 
>[...]
>> I think that this construction is allowed by the ANSI C++.
>
>No, it is not. What you meant is
>
>template< template< template<class> class > class Tmpl> class A {};
>
>I could compile that with egcs 2.92.17.

sorry, I forgot the "class" before A in my posting (but not in my
program). 

But Kriang Lerdsuwanakij wrote :

>That special use of template template parameter is still not 
>implemented.  All instantiation of such templates is currently flagged
>as error.  Unfortunately I am very busy so that I won't have time to
>implement that for a while.  Unless someone else work on it, expect
>something about 3 months as the worst case.

and this seems to contradict the posting of Martin : who is right ?
-- 
                     Luc Bourhis
        
              Center for Particle Theory
               University of Durham, UK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]