Article View: comp.std.c++
Article #4030Re: references and ellipsis
From: Steve Clamage
Date: Sun, 14 Apr 1996 12:34
Date: Sun, 14 Apr 1996 12:34
18 lines
1449 bytes
1449 bytes
frigault@gla.ecoledoc.ibp.fr (Laurent FRIGAULT) writes:
>I discover a problem when trying to use a C++ reference to an object
>just before an ellipsis :
>int foo(const int& aInt,...){
According the draft standard, the results of using a reference
type as the last pararmeter before the ellipsis (...) are
undefined. See section 18.7 "Other runtime support" [lib.support.runtime].
--
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Technical Details
Message-ID:
<4kpd3v$2fb@engnews1.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<4kop8j$ino@vishnu.jussieu.fr>Show Full Headers
Complete Article Headers
From: clamage@Eng.Sun.COM (Steve Clamage) Message-ID: <4kpd3v$2fb@engnews1.Eng.Sun.COM> X-Original-Date: 13 Apr 1996 23:24:47 GMT Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 14 Apr 96 12:34:04 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++,comp.lang.c++.moderated Subject: Re: references and ellipsis Organization: Sun Microsystems Inc., Mountain View, CA References: <4kop8j$ino@vishnu.jussieu.fr> X-Newsreader: NN version 6.5.0 #21 (NOV) X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMXDwyeEDnX0m9pzZAQH2hgF9EIaRBJ/UU3WGWGlpyv5n7+cpXfl33BwY znb8Fvi0EkXiwBYekldEn8GQpg/+Aa3j =VD+K