From -2557032273168534361
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,da46f9d6feb862e5
X-Google-Attributes: gidf78e5,public
From: Joerg Barfurth <jbarfurth@vossnet.de>
Subject: Re: Is this well-formed?
Date: 1999/04/18
Message-ID: <3717B429.6AFD064A@vossnet.de>#1/1
X-Deja-AN: 467926327
Content-Transfer-Encoding: quoted-printable
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <7f1nnv$6c$1@weber.techno-link.com> <3730ea5e.2688074620@news.ccnet.com>
X-Original-Date: Sat, 17 Apr 1999 00:05:30 +0200
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 924441191 3872 128.250.29.16 (18 Apr 1999 13:13:11 GMT)
Organization: DIE BARFURTHS
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANxnaUeEDnX0m9pzZAQFVRwGAmpMCec+vjHjw1GNcDA2mS9oeNq5ARNWO 1ReMCYqT4gZGZGw5t62PIdsjygIq2kOF =veys
Mime-Version: 1.0
Reply-To: jbarfurth@vossnet.de
NNTP-Posting-Date: 18 Apr 1999 13:13:11 GMT
Newsgroups: comp.std.c++

Paul Pedriana wrote:
> =

> Small problem: the templates take 'int*' but your
> program is using 'int'. Are you sure this is what
> you intended?
> =

> Anyway, since the compiler can not convert
> '0' to type 'int*', =


C++-Standard 4.10/1 [conv.ptr]:
A null pointer constant is an integral constant expression [...] that
evaluates to zero. A null pointer constant can be converted to a pointer =
type,
the result is the null pointer value of that type ...

-- J=F6rg
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



