Boost logo

Boost :

Subject: Re: [boost] [Fusion] begin/end ADL issues with C++0x range-based for
From: Christopher Schmidt (mr.chr.schmidt_at_[hidden])
Date: 2010-12-20 12:21:49


Joel de Guzman schrieb:
> 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,

Committed:

https://svn.boost.org/trac/boost/changeset/67352

Unfortunately this still leaves us with ADL ambiguity in some cases:

https://svn.boost.org/trac/boost/ticket/4028#comment:6

-Christopher


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