$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2005-08-05 10:06:41
Rob Stewart <stewart_at_[hidden]> writes:
>> > What about user-supplied predicates? You can't use infix
>> > notation then.
>>
>> all_of(a)._(frobnicates, any_of(b))
>>
>> all_of(a)._,frobnicates, any_of(b)
>>
>> all_of(a)._ %frobnicates% any_of(b)
>>
>> all_of(a)._ |frobnicates| any_of(b)
>>
>> all_of(a)._ <frobnicates> any_of(b)
>>
>> (etc)
>
> That gives some notion of infix, but it seems entirely too
> contrived to me.
>
> What about this:
>
> all_of(a)(frobnicates, any_of(b))
>
> It seems a little better.
I started there, but the placement of parens seems to arbitrary and
unbalanced. Also, the whole point of infix is to get rid of those.
-- Dave Abrahams Boost Consulting www.boost-consulting.com