This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: demengler in libstdc++ is changed
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: <tm_gccmail at kloo dot net>
- Cc: Matt Austern <austern at apple dot com>, "H. J. Lu" <hjl at lucon dot org>, gcc at gcc dot gnu dot org
- Date: 15 Nov 2003 00:43:35 +0100
- Subject: Re: demengler in libstdc++ is changed
- Organization: Integrable Solutions
- References: <Pine.LNX.4.21.0311141356000.16464-100000@mail.kloo.net>
<tm_gccmail@kloo.net> writes:
| I'm confused. To me, these are not the same.
|
| foo(const int *) is a function which takes "pointer to a const int".
|
| foo (int const *) is a function which takes "const pointer to an int".
No.
"const pointer to an int" is written in C and C++ as "int* const".
Note the position of the star.
-- Gaby