Boost logo

Boost :

Subject: Re: [boost] Please use BOOST_ASSERT_MSG(x, "message") instead of BOOST_ASSERT(x && "message")
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-02-28 13:47:43

On Feb 24, 2012, at 5:46 AM, Mathias Gaunard wrote:

> Several libraries, including Boost.Array, use things like
> BOOST_ASSERT( i < N && "out of range" );
> This causes warnings with EDG-based compilers.
> It would be nice if library authors could replace this with something like
> BOOST_ASSERT_MSG( i < N, "out of range" );
> Not only will it make those warnings disappear, it will also enable users to use those messages more efficiently in custom assert handlers.

Boost.Array updated in r77135.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

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