Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] BOOST_CHECK_EQUAL comparisons with NULL don't compile
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-09-07 13:50:56


AMDG

On 09/07/2012 10:35 AM, Chris Cleeland wrote:
> On Fri, Sep 7, 2012 at 11:32 AM, James Mathiesen
> <james-mathiesen_at_[hidden]>wrote:
>
>> This use case seems really common and I was surprised it gave me problems.
>>
>> I assume that nullptr_t in C++11 fixes this but then I was wondering
>> if the cases were basic and common enough it would make sense to have
>> a BOOST_CHECK_NULL / BOOST_CHECK_NOT_NULL and the assorted variants.
>>
>
> Use "0" instead of NULL.
>

This won't help given that the cause of
the problem is that NULL *is* 0.

In Christ,
Steven Watanabe


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