в VS2010 не работает частичная специализация
От: Hard_Club  
Дата: 11.02.13 16:43
Оценка: -3
В VS2010 не компилиться следующий код:

template< typename T, typename S > class B {};
template< typename U > class B< int, U > {};

int _tmain(int argc, _TCHAR* argv[])
{
B<double> b;

error C2976: 'B' : too few template arguments see declaration of 'B'
error C2133: 'b' : unknown size
error C2512: 'B' : no appropriate default constructor available

Должно же работать?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.