E2426 Explicit specialization of 'specifier' requires 'template<>' declaration (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

According to the standard, explicit specialization of any template now always require the "template<>" declarator syntax. For example:

template<class T>
class foo;
template<>
class foo<char>;// OK: "template<>" was provided
class foo<int>;// error: "template<>" required