|
Boost : |
From: Björn Karlsson (Bjorn.Karlsson_at_[hidden])
Date: 2002-09-26 02:51:18
Some time ago, Lars Gullik Bjønnes wrote this:
>We get a lot of warnings with the
>
>char * ptr = 0;
>assert(ptr);
>
>idom on 64 bit computers, in that a converson from 64bit integer to 32
>bit integer can loose bits."
The proposed solution was trivial: using assert(ptr!=0); removes the
warning. This [assert(ptr)] is a fairly common construct, and as it seems to
do no harm, and avoid annoying warnings, should we apply it Boost-wide?
If there's consensus that this should be done, I'll start applying it right
after 1_29_0 is released (yes, although it seems harmless I hesitate to
apply it to the RC branch).
Thoughts?
Bjorn Karlsson
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk