Boost logo

Boost :

Subject: Re: [boost] BOOST_ASSERT_IF() [again]
From: Scott McMurray (me22.ca+boost_at_[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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk