Re: error: call of overloaded ‘foo(int)’ is ambiguous (0 vs null ptr)
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu May 24 19:39:00 GMT 2012
On Thu, May 24, 2012 at 2:26 PM, Peter A. Felvegi
<petschy@praire-chicken.com> wrote:
> Hello,
this list is not the appropriate place to discuss this.
Check a C++ forum.
>
> I'm not sure whether this is standard behaviour or not; nonetheless I was
> quite surprised:
Welcome to null pointer constant madness. It is standard semantics.
Fortunately 0-0 is no longer a null pointer constant
in C++11 appropriately amended.
-- Gaby
More information about the Gcc
mailing list