[Bug c++/11719] Cannot specialize a member function of a template class
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Wed Jul 30 00:49:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11719
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-30 00:49 -------
The code is invalid as you cannot specialize just a function of template class, you have to
specialize the who class:
Adding
template <typename T>
class S<T, 1> {
public:
void Foo();
};
Fixes the code to become valid.
More information about the Gcc-bugs
mailing list