RAD Studio
ContentsIndex
PreviousUpNext
E2426: Explicit specialization of 'specifier' requires 'template<>' declaration (C++)

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
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!