
16 Sep
2008
16 Sep
'08
6:13 a.m.
On Mon, 15 Sep 2008 21:01:48 -0400, Stefan Seefeld <seefeld@sympatico.ca> wrote:
Peter Dimov wrote:
In this case, though, the meaning is unambiguous. (Y*)0 is - obviously - a null pointer "literal" of type Y*. So it's nice. :-)
It's a pitty that function-style casts are invalid here, since pointers don't have constructors. :-)
I don't think that's the reason; this is valid: typedef int* intp; intp x = intp(); -- David Abrahams Boostpro Computing http://www.boostpro.com