От: | Аноним | ||
Дата: | 23.11.04 15:49 | ||
Оценка: |
struct A
{
typedef int Type;
};
class B
{
template<typename T> static void Foo() { }
};
template <class T1> class Cl
{
public:
Cl() {};
template<class T2> void Foo(T2 t)
{
typedef typename T1::Type Type;
Type i = T2::Foo<Type>();//здесь
}
};
int main()
{
Cl<A> cl;
B b;
cl.Foo(b);
}