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

Submit New Article

June 24, 2009 12:00 AM PDT



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


Do you need more help?


This article applies to: Intel® C++ Compiler for Windows* Knowledge Base