Вот что пишет по её поводу МСДН:
'type' : types with no linkage cannot be used as template arguments
You cannot generate a template class (a class from a class template) based on a local type. Types used to instantiate templates must have external linkage.
Example
// C2926.cpp
template<class T> class X{};
void f()
{
struct Y{};
X<Y> x; // C2926
}
int main()
{
}
Но почему так нельзя я не понимаю!
Може кто-нибудь из гуру объяснит в чем проблема?
Исправлено форматирование. Пожалуйста, пользуйтесь тегами [c] ... [/c], [code] ... [/code] и т.п. для выделения фрагментов кода. -- ПК.