Boost logo

Boost :

Subject: Re: [boost] [functors] proposal
From: Peter Dimov (lists_at_[hidden])
Date: 2013-10-23 06:58:33

Krzysztof Czainski wrote:
> I omitted two cases: SkipFunctor and AssertFunctor. I'm not sure how to do
> that, nor do I see a potential use case for those ;-)

SkipFunctor: boost::bind( skip_ ), where

    void skip_() {}

boost::bind( FalseFunctor ) also works.

AssertFunctor: boost::bind( assert_, false ), where

    void assert_( bool x ) { assert( x ); }

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