error: an explicit template argument list is not allowed on this declaration


Problem :

error: an explicit template argument list is not allowed on this declaration

Environment :

Windows, MSVC 2005, Intel C++ compiler

Root Cause : 

The following code would fail compile with this error using the Intel C++ Compiler for windows

template <class T> void foo();
template <class T> void foo<T>();


Resolution :


This is resolved in the latest update of  the Intel C++ compiler for windows, version 11.1
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.