home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!opl.com!regina!harvey
- From: harvey@opl.com (Harvey Reed)
- Newsgroups: comp.lang.c++
- Subject: Re: Why X::X(X &a), not X::X(X a) ?
- Message-ID: <harvey.726884989@regina>
- Date: 13 Jan 93 00:29:49 GMT
- References: <1993Jan12.155159.22650@mobil.com>
- Sender: news@opl.com
- Lines: 17
-
- winney@dal.mobil.com (Randy Winney) writes:
-
- >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)
-
- because X::X(X a) is recursive.
-
-
-
- --
- ++harvey
- ========================================================================
- internet: harvey@opl.com / hreed@cs.ulowell.edu / h.reed@ieee.org
- voice: 617-965-0220
-