Failed to specialize function template
От: 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'
}


Как можно обойти эту "фичу" VC6.0? Шаблон функции должен быть реализован вне класса.
... << RSDN@Home 1.1.4 beta 3 rev. 185>>
--
RedApe
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.