Boost logo

Boost :

Subject: Re: [boost] [Fusion] begin/end ADL issues with C++0x range-based for
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-12-18 18:28:56


On 12/19/10 12:03 AM, Christopher Schmidt wrote:
> Michel MORIN schrieb:
>> Hi,
>>
>> In some cases, Fusion Sequence cannot be used in
>> C++0x range-based for (available on GCC 4.6 Pre-Release).
>> For example, this code

[snip]

>> I attached a patch (against trunk) and a test case.
>> The test case does not compile before applying the patch,
>> but compiles fine after applying the patch.
>> Joel and Christopher, what do you think about this change?
>>
>> Regards,
>> Michel
>
> Your patch makes perfect sense to me.
> BTW., Mathias Gaunard created a ticket for this issue a while ago. He
> also proposed disabling fusion::begin/fusion::end via SFINAE.
>
> https://svn.boost.org/trac/boost/ticket/4028

Makes perfect sense. Feel free to commit the patch.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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