This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

explicit specialization in non-namespace scope



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]