Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!cos!patrick From: patrick@cos.com (Patrick Steranka) Newsgroups: comp.lang.c++ Subject: Is this legal? "T& b_ref(b)" Keywords: Novice Question, bug? Message-ID: <24778@cos.com> Date: 3 Dec 89 03:11:30 GMT Organization: Corporation for Open Systems, McLean, VA Lines: 15 Is the following set of statements legal (where T is any class) ? T a; T b; T& a_ref = a; T& b_ref(b); If so, what does the last line mean? "T& b_ref(b)" I was playing around and tried this and the compiler didn't flag it as an error. Is it an error? If not, what does the last line mean? patrick (Patrick Steranka @ Corporation for Open Systems) -- patrick@cos.com -- patrick%cos.com@uunet.uu.net -- {uunet, sundc, decuac, hqda-ai, hadron}!cos!patrick