This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
explicit specialization in non-namespace scope
- To: egcs at cygnus dot com
- Subject: explicit specialization in non-namespace scope
- From: Oskar Enoksson <osken393 at student dot liu dot se>
- Date: Thu, 17 Sep 1998 18:59:39 +0200 (MET DST)
The following code compiles with egcs 1.1 but not with egcs-19980914,
Which is wrong?
class X {
public:
template<int M>
int Factulty() { return M*Faculty<M-1>(); }
template<>
int Faculty<0>() { return 1; }
};
Thanks!
*/ Oskar Enoksson, Linkoping, Sweden /*