Boost logo

Boost Users :

Subject: Re: [Boost-users] [Range & c++0x Lambdas] Can this be done?
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2012-11-29 13:31:23


On Thu, Nov 29, 2012 at 10:02 AM, Nathan Crookston <
nathan.crookston_at_[hidden]> wrote:

> Jeffrey Lee Hellrung, Jr. wrote:
>
>> Eric Niebler wrote:
>>
>>> That's an interesting suggestion. (Thinking ...) It requires the ability
>>> to detect the presence or absence of a nested result<> struct template.
>>>
>>
>> Yes.
>>
>>
>>> IIRC, this is difficult, and doesn't work on all compilers.
>>
>>
>> It's not so different from detecting the presence of result_type;
>> hopefully compilers with lambdas and weak decltype are sufficiently
>> sophisticated to handle it.
>>
>
> The fallback could always be predicated on
> BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE as well, though I suspect that's defined
> for all compilers with decltype.
>
>
>>
>> Would you be willing to open a trac ticket and attach a patch?
>>
>>
>> I can put it on the my TODO list :)
>>
>
> If you don't have time for this soon, I could probably do this tonight --
> if it's not stepping on your toes. . .
>

Not at all, be my guest!

- Jeff



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net