Subject: Re: [boost] Latest changes to scoped enum emulation break existing code
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-05-12 11:58:46
Le 12/05/12 17:09, Jürgen Hunold a écrit :
> Hi Vicente,
> On Saturday, 12. May 2012 13:09:56 Vicente J. Botet Escriba wrote:
>> Le 12/05/12 03:17, Hartmut Kaiser a écrit :
>>> Hey all,
>>> The latest commit to the scoped enumerator emulation breaks existing code
>>> using the previous version of this functionality.
>>> Please see the Spirit regression tests for examples.
>> I have rolled back so that we can take the time to analyze what was wrong
> I think I ran into this one yesterday. There is a name clash between an
> internal scoped enum helper function "native()" and a spririt enum containing
> an enum value of "native". Changing the scoped enum implementation to use
> "native_()" fixed the problem for me.
> Patch attached.
Oh, I didn't though about this possible issue. Thanks for the analysis.
Do you think that as these functions are not part of the interface a
longer name could be enough to avoid future clashes?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk