Boost logo

Boost :

Subject: Re: [boost] BOOST_ASSERT_IF() [again]
From: Scott McMurray ([hidden])
Date: 2009-05-06 00:35:43

On Tue, May 5, 2009 at 20:11, Richard Holden <aciddeath_at_[hidden]> wrote:
> Could you provide an usage example please, I understand the macro but I
> don't understand the usage pattern.

Perhaps something like this?

    BOOST_ASSERT_IF( !c.empty(), *c.begin() < *c.rbegin() );

Perhaps it would be better named BOOST_ASSERT_IMPLIES?

~ Scott

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