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: error: call of overloaded ‘foo(int)’ is ambi guous (0 vs null ptr)


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


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