RAD Studio
ContentsIndex
PreviousUpNext
W8077: Explicitly specializing an explicitly specialized class member makes no sense (C++)

Internal error. This warning is no longer generated by the compiler. 

The following code is illegal:

template<class T> class foo { int x; }

 

template<> class foo<int> { int y; }

 

template<> int foo<int>::y;   // error: cannot explicitly specialize of 'foo<int>::x'
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!