Boost logo

Boost Users :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2008-01-02 17:05:29


On Jan 2, 2008 8:02 PM, Robert Dailey <rcdailey_at_[hidden]> wrote:
> Hi,
>
> Does boost have some sort of null_ptr class that allows you to do portable
> NULL comparisons? For example, the following isn't portable:
>
> char* foo = 0;
> if( foo != 0 )
> {
> }

Why is this not portable?

[snip]

-- 
Felipe Magno de Almeida

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net