|
|
От: | Юрий Жмеренецкий | ICQ 380412032 |
| Дата: | 02.02.10 16:27 | ||
| Оценка: | |||
А>template<class T> struct A {
А>static T t; // 1
А>T *pt; // 2
А>};
А>typedef int function();
А>A<function> a; // ill-formed: would declare A<function>::t
А> // as a static member function
А>14.3.1/3 If a declaration acquires a function type through a type dependent on a template-parameter and this causes a declaration that does not use the syntactic form of a function declarator to have function type, the program is ill-formed.