Boost logo

Boost :

Subject: Re: [boost] [mpl]iter_fold_if Forward Backward rationale?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-18 18:19:38


AMDG

David Abrahams wrote:
> on Sun Apr 05 2009, Larry Evans <cppljevans-AT-suddenlink.net> wrote:
>
>> Just as the ForwardPredicate is "augmented" with protection
>> against dereferencing the end<numbers>::type in this code:
>>
>> https://svn.boost.org/trac/boost/browser/trunk/boost/mpl/iter_fold_if.hpp#L42
>>
>> shouldn't the BackwardPredicate also be augmented with the same
>> protection here:
>>
>> https://svn.boost.org/trac/boost/browser/trunk/boost/mpl/iter_fold_if.hpp#L77
>>
>
> Well, it doesn't need to be; if it did, tests and uses wouldn't compile
> ;-)
>

Alas. AFAICT, there are no tests or uses for the Backward Predicate in MPL.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk