
On Thu, 12 Feb 2004 18:02:13 -0500, Douglas Gregor <gregod@cs.rpi.edu> wrote:
Shortly after this message this message hit the Boost list (and before I saw it), I received this helpful little note from a friend:
"You might want to arm yourself with 5.2.10/8 and 4.10/1."
He's right, I think. 0 is the null pointer constant, which is a null pointer value,
No. It becomes a null pointer value *if* converted to a pointer type. 5.2.10/8 is telling you can do this: 0 -> pointer type -> reinterpret_cast<void*> while you are doing, directly 0 -> reinterpret_cast<void*> This way, you are converting an int.
[...] But if you don't agree, I'm just as happy replacing it with a static_cast instead of starting a long discussion. It's just not worth it :)
Yes :) Genny.