Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-09-14 01:20:03


David Abrahams writes:
> "Jonathan Turkanis" <technews_at_[hidden]> writes:
>
>> "Robert Ramey" <ramey_at_[hidden]> wrote in message
>> news:20040913173738.24EAC3123A_at_acme.west.net...
>>> Would someone have a fit if something like this were added to boost/mpl ?
>>
>>>
>>> template<
>>> typename C
>>> , typename F1
>>> , typename F2
>>> >
>>> struct apply_if
>>> {
>>> typedef BOOST_DEDUCED_TYPENAME eval_if<C,F1,F2>::type type;
>>> };
>>
>> How about
>>
>> template<
>> typename C
>> , typename F1
>> , typename F2
>> >
>> struct apply_if : eval_if<C,F1,F2> { };
>
> Metafunction forwarding confuses some old broken compilers. Robert's
> version is a bit more conservative.
>
> But, really, how hard can a global search/replace be? Or is Spirit
> 1.6.1 archived?

No, it's not. Or, to be exact, the latest 1.6.x version which we are
supposed to compile against is not --
http://article.gmane.org/gmane.comp.parsers.spirit.devel/1964.

I'd _much_ prefer to have this fixed by search & replace, more so
because it'd have to be done eventually sooner or later anyway, if
Spirit 1.6.x is meant to live past this release.

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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