This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: error: call of overloaded ‘foo(int)’ is ambi guous (0 vs null ptr)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Peter A. Felvegi" <petschy at praire-chicken dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 24 May 2012 14:38:52 -0500
- Subject: Re: error: call of overloaded ‘foo(int)’ is ambi guous (0 vs null ptr)
- References: <4FBE8B76.2030507@praire-chicken.com>
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