home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
- Subject: Re: classes referenced each in their declaration
- Distribution: world
- References: <1992Jul23.003724.13021@murdoch.acc.Virginia.EDU>
- Organization: Trumphurst Ltd.
- Lines: 22
- Date: Fri, 24 Jul 1992 19:51:13 +0000
- Message-ID: <712032673snx@trmphrst.demon.co.uk>
- Sender: usenet@gate.demon.co.uk
-
-
- In article <1992Jul23.003724.13021@murdoch.acc.Virginia.EDU> gs4t@virginia.edu (Gnanasekaran Swaminathan) writes:
- > Thanks for catching the bug. The following is tested
- > in GNU C++ and it works.
- >
- > class Y;
- >
- > class X {
- > Y& y;
- > public:
- > X(const Y& y1): y(y1) {}
- > };
- Is it permissible to assign a reference to const to a reference to non-
- const in GNU C++ ?
-
- I don't think it should be !
- ---
- Nikki Locke | | nikki@trmphrst.demon.co.uk
- Trumphurst Ltd. | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
- PC and Unix consultancy | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
- trmphrst.demon.co.uk is NOT connected with ANY other sites at demon.co.uk.
- Demon.co.uk is a dial-up subscription access point to the Internet.
-