Boost logo

Boost :

From: Toon Knapen (toon_at_[hidden])
Date: 2001-06-15 01:36:21


John Maddock wrote:
>
> >stating that "Using a 0 where you should use NULL generates a 32-bit
> constant. On Alpha systems, this could yield 0 in the low 32 bits and
> useless data in the high 32 bits when passed into a function that
> accepts a variable number of arguments. Using NULL from the <stdio.h>
> header file provides the correct value. "
>
> In 32bit everything works out fine whereas it does not when sizeof(T*)
> != sizeof(int)
> <
>
> Not true, ...

Why, because of 4.10.1 ?
Nevertheless I heard of this problem before related to porting to 64bit
discussions. But this is thus a non-conforming-compiler issue ? Probably
the compiler-problem originates from the compilers originally taking
only 32bit platforms into account.

t


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk