Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!uw-june!sullivan
From: sullivan@june.cs.washington.edu (Kevin Sullivan)
Newsgroups: comp.lang.c++
Subject: variable number of args & pass by reference
Keywords: C++ stdargs.h reference
Message-ID: <6541@june.cs.washington.edu>
Date: 29 Nov 88 04:46:43 GMT
Organization: U of Washington, Computer Science, Seattle
Lines: 22


I want a subroutine to take a variable number of arguments and for those
arguments to be passed as references:

Frame::Frame(Point& p, Vector& ...)

Where "..." means any number of Vector&s.  It doesn't look like this
is possible.  The Point& argument and the first Vector& argument are
passed as references, but the rest of the Vector arguments are passed
by value (judging by a stack backtrace.)

My question is: is there any way to have the arguments falling under
the "..." passed as references.  Seems like no, but maybe there is
someone out there who knows for sure.

Thanks a lot.


-- 
--------
Kevin Sullivan, sullivan@cs.washington.edu,
Department of Computer Science, Sieg Hall FR-35, 
University of Washington, Seattle, WA 98195 (206) 543-1695