From -7055518599429664572
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,fe6310a7fb6a4c8c
X-Google-Attributes: gidf78e5,public
From: Oleg Zabluda <zabluda@math.psu.edu>
Subject: Re: const int& or int const&
Date: 1998/02/06
Message-ID: <6bbhgt$n7@marianna.psu.edu>#1/1
X-Deja-AN: 322700232
References: <34D8AD3C.5C38416B@heidelbg.ibm.com>
X-Original-Date: 5 Feb 1998 00:08:45 -0500
X-Server-Date: 5 Feb 1998 04:32:36 GMT
Organization: Penn State University, Center for Academic Computing
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBNNta6Ey4NqrwXLNJAQEdXAIAq9Ugo1Fk4eT2ZRkIp7kreXj3s3VUxiPN lat/C/C3GIxBZKkNjGZeidEyrwMy3Uy0VuRbmX/APjuA2Ng0S1reRw== =Vqhj
Reply-To: zabluda@math.psu.edu (Oleg Zabluda)
Newsgroups: comp.std.c++
Originator: austern@isolde.mti.sgi.com


Martin Neimeier <neimeier@heidelbg.ibm.com> wrote:
: What is the difference between the three method-headers ?

: void foo(const in& foo_var);
: void foo(int const& foo_var);
: void foo(const int const& foo_var);

The first two are identical, the third is illegal.

Oleg.
-- 
Life is a sexually transmitted, 100% lethal disease.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern/std-c++/faq.html                  ]



