explicit specialization in non-namespace scope

Oskar Enoksson osken393@student.liu.se
Thu Sep 17 09:59:00 GMT 1998


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                  /*




More information about the Gcc mailing list