|
Boost : |
Subject: Re: [boost] [assert] static_assert envy
From: Beman Dawes (bdawes_at_[hidden])
Date: 2011-01-17 12:29:22
On Mon, Jan 17, 2011 at 10:24 AM, Robert Kawulak
<robert.kawulak_at_[hidden]>wrote:
> > From: Beman Dawes
> > BOOST_EXTENDED_ASSERT(true, "This will not assert");
> > BOOST_EXTENDED_ASSERT(false, "This will assert");
>
> +1, although I hate the name - it's too long. The use of asserts should be
> encouraged by making them fast to type and cluttering the
> code as little as possible. Right now I can't think of any obviously good
> name, but maybe BOOST_ASSERTM (assert with message)?
>
I didn't like it either, but didn't come up with anything better.
But see Eric's later posting...
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk