home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!cs.utexas.edu!lgc.com!srinivas
- From: srinivas@lgc.com (Manapragada Srinivas)
- Subject: Ellipsis in template constructors
- Message-ID: <1992Aug27.041723.3908@lgc.com>
- Followup-To: gnu.g++.bug
- Sender: usenet@lgc.com
- Nntp-Posting-Host: squirt.lgc.com
- Organization: Landmark Graphics Corporation
- Date: Thu, 27 Aug 1992 04:17:23 GMT
- Lines: 37
-
-
- Hi,
-
- I am trying to use ellipsis in my template constructors. The problem
- is that g++2.2.2 gives a syntax error for the followin piece of code
-
-
- template<class T>
- Vector<T>::Vector( int size ... )
- {
- // Other stuff
- }
-
- I have also tried
-
- template<class T>
- Vector<T>::Vector( int size, ... )
- {
- // Other stuff
- }
-
- g++ gives the following error
-
- Vector.icc: In method `Vector<float>::Vector (int, ...)':
- Vector.icc:48: parse error before `)'
-
-
- Is this a bug in g++2.2.2 or ellipsis not allowed in constructors?
-
-
- I would appreciate any help in this matter.
-
- Thanks in advance,
-
- Srinivas
- --
- Yonder, beyond the event horizon!
-