Re: шаблонный параметр шаблона
От: rg45 СССР  
Дата: 14.03.06 14:32
Оценка: 1 (1)
"enots" <19635@users.rsdn.ru> wrote in message news:1782026@news.rsdn.ru...
>
>
> template< template<class T> void(*)(int),  class T1 = vector<T> >
> class Test2
> {
>    typename T1::iterator it;
> };
>

>
> Что то MSVS7.1 не кушает это ...

14.3.3 Template template arguments

1 A templateargument

for a template templateparameter

shall be the name of a class template, expressed as

idexpression.

Only primary class templates are considered when matching the template template argument

with the corresponding parameter; partial specializations are not considered even if their parameter lists

match that of the template template parameter.


Другими словами, шаблонным параметром шаблона может быть только шаблон класса или структуры
Posted via RSDN NNTP Server 1.9
--
Справедливость выше закона. А человечность выше справедливости.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.