home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11492 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.lang.c++
  2. From: nikki@trmphrst.demon.co.uk (Nikki Locke)
  3. Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
  4. Subject: Re: classes referenced each in their declaration
  5. Distribution: world
  6. References: <1992Jul23.003724.13021@murdoch.acc.Virginia.EDU>
  7. Organization: Trumphurst Ltd.
  8. Lines: 22
  9. Date: Fri, 24 Jul 1992 19:51:13 +0000
  10. Message-ID: <712032673snx@trmphrst.demon.co.uk>
  11. Sender: usenet@gate.demon.co.uk
  12.  
  13.  
  14. In article <1992Jul23.003724.13021@murdoch.acc.Virginia.EDU> gs4t@virginia.edu (Gnanasekaran Swaminathan) writes:
  15. > Thanks for catching the bug. The following is tested
  16. > in GNU C++ and it works.
  17. > class Y;
  18. > class X {
  19. >     Y&    y;
  20. >     public:
  21. >     X(const Y& y1): y(y1) {}
  22. > };
  23. Is it permissible to assign a reference to const to a reference to non-
  24. const in GNU C++ ?
  25.  
  26. I don't think it should be !
  27. ---
  28. Nikki Locke              |                        | nikki@trmphrst.demon.co.uk
  29. Trumphurst Ltd.          | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
  30. PC and Unix consultancy  | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
  31. trmphrst.demon.co.uk is NOT connected with ANY other sites at demon.co.uk.
  32. Demon.co.uk is a dial-up subscription access point to the Internet.
  33.