RAD Studio |  |

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:

Copy Code

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

Copy Code

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

Copy Code

    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!