|
Boost Users : |
Subject: Re: [Boost-users] [test] BOOST_CHECK_EQUAL comparisons with NULL don't compile
From: Chris Cleeland (chris.cleeland_at_[hidden])
Date: 2012-09-07 13:35:56
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.
-- Chris Cleeland
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