Boost logo

Boost :

Subject: Re: [boost] [new Warnings policy] MS C4180 on the MaintenanceGuidelines
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-11-17 18:54:35

On Tue, Nov 17, 2009 at 2:57 PM, Mateusz Loskot <mateusz_at_[hidden]> wrote:
> Nothing wrong for me personally, but I've heard some say it's too long
> and unnecessary as in assert(0 != ptr) all 5 characters can
> be replaced with just one !

Assuming ptr is a pointer, AFAIK assert(ptr) is illegal, though
assert(ptr!=0) and assert(!ptr) are OK.

Emil Dotchevski
Reverge Studios, Inc.

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