help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static menber var in nested template


From: Paul Pluzhnikov
Subject: Re: static menber var in nested template
Date: Thu, 25 Sep 2008 21:16:33 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Ichthyostega <Ichthyostega@web.de> writes:

> template<typename T>
>   struct A
>     {
>       template<typename U>
>       struct B
>         {
>            static int aa;
>         };
>     };
>
> template<typename T, typename U>
> int A<T>::template B<U>::aa;  // error: too few template-parameter-lists

Try:

template<typename T>
template<typename U>
int A<T>::B<U>::aa;


-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]