This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: demengler in libstdc++ is changed


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]