От: | Aera | ||
Дата: | 01.11.04 21:13 | ||
Оценка: |
struct a
{
void bar(int&);
template<class T> void foo(T&t);
};
template<class T> void a::foo(T& t)
{
}
void a::bar(int&r)
{
foo(r);
// error C2893: Failed to specialize
// function template 'void __thiscall a::foo(T &)'
// With the following template arguments:
// 'int'
}