|
|
От: | Anonim547 | |
| Дата: | 01.02.10 19:10 | ||
| Оценка: | 34 (2) | ||
typedef int function();
template<class T> struct A {
// static T t; // 1 - ill-formed, type dependent on a template-parameter
static function t; // 1a - Ok
T *pt; // 2 - ???
typedef T T2; // 3 - ???
};
A<function> a; // комментарии выше указаны исключительно для данной специализацииI submitted a reduced version of the code to Comeau and asked them why it didn't compile. It turns out to be 14.3.1/3