home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:16828 comp.std.c++:1616
- Newsgroups: comp.lang.c++,comp.std.c++
- Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!xjzhu
- From: xjzhu@math.uwaterloo.ca (Xiaojun Zhu)
- Subject: Can A<S> and A<S, T> coexist ?
- Message-ID: <By7Cr9.5K4@math.uwaterloo.ca>
- Keywords: template, different number of arguments
- Organization: University of Waterloo
- Date: Tue, 24 Nov 1992 04:06:45 GMT
- Lines: 23
-
- Q: Can A<S> and A<S, T> coexist?
-
- I.e., is the following declaration valid?
-
- template<class S> class A{};
- template<class S, class T> class A{};
-
- AT&T C++ V3.0 fails on comipling the above code.
-
- As I see it, since the two A's are accepting different number of arguments,
- there is no reason why such thing should not be allowed.
-
- Any comments?
-
-
-
- --------------------------------------------------------------
- A template version of my signature class is under repair.
- Symptom: It dies without a warning if I use certain class
- as an argument.
-
- xjzhu@math.uwaterloo.ca
- --------------------------------------------------------------
-