This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: demengler in libstdc++ is changed
- From: <tm_gccmail at kloo dot net>
- To: Matt Austern <austern at apple dot com>
- Cc: "H. J. Lu" <hjl at lucon dot org>, gcc at gcc dot gnu dot org
- Date: Fri, 14 Nov 2003 13:59:09 -0800 (PST)
- Subject: Re: demengler in libstdc++ is changed
On Fri, 14 Nov 2003, Matt Austern wrote:
> Example: _Z3fooPKi could reasonably be demangled as foo(const int*),
> or foo(int const*), or foo(int const *), or a number of other
> choices. All are correct; as far as the compiler is concerned, there
> is no difference between them. Programmers use those forms
> interchangeably, or choose between them on stylistic grounds. In
> my opinion a demangler that chose any of those forms is correct.
>
> --Matt
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".
What am I missing?
Toshi