Boost logo

Boost :

Subject: Re: [boost] [config] Macro for null pointer
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-11-30 01:59:27

On Thu, Nov 29, 2012 at 9:51 PM, Jeffrey Lee Hellrung, Jr.
<jeffrey.hellrung_at_[hidden]> wrote:
> On Thu, Nov 29, 2012 at 12:04 AM, Andrey Semashev <andrey.semashev_at_[hidden]
>> wrote:
>> My main point is that
>> nullptr should "just work" (tm) by default.
> But, it kinda doesn't "just work" if correct and robust use requires a
> conditional using declaration. And, at that point, what use is the "using
> boost::nullptr" at global scope anyway, if it's conditional on a
> configuration macro?

The config macro is only used to solve problems, should they arise.
Other than that nullptr will work after simply including the header.
And I'm sure in 99.9% of cases this will be the case.

Boost list run by bdawes at, gregod at, cpdaniel at, john at