home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mailgate.mobil.com!winney
- From: winney@dal.mobil.com (Randy Winney)
- Subject: Why X::X(X &a), not X::X(X a) ?
- Message-ID: <1993Jan12.155159.22650@mobil.com>
- Sender: news@mobil.com
- Organization: Mobil Exploration & Producing Technical Center(MEPTEC), Dallas.
- Date: Tue, 12 Jan 1993 15:51:59 GMT
- Lines: 5
-
- Could someone explain to us neophytes why C++ requires
- that I use the constructor
- X::X(X &a)
- instead of simply
- X::X(X a)
-