Boost logo

Boost :

Subject: Re: [boost] [assert] static_assert envy
From: Beman Dawes (bdawes_at_[hidden])
Date: 2011-01-17 12:27:59


On Mon, Jan 17, 2011 at 11:57 AM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> AMDG
>
> Is there anything wrong with the idiom
>
> assert(true && "This will not assert");
>
> I've used that idiom, and sometimes is OK. But it depends too much on the
compiler and platform. I'd rather get a uniform result.

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk