[C++-sig] Enums with duplicated values.

David Abrahams dave at boostpro.com
Fri Dec 19 03:13:05 CET 2008


on Wed Dec 17 2008, "Hugo Lima" <hugo.lima-AT-openbossa.org> wrote:

> Hi;
>
> I need wrap enums with duplicated values, but boost::python do not
> support it. At the boost website you can find the quote:
>
> "Scott Snyder provided a patch; Dave was dissatisfied for some reason,

I think I didn't really like the asymmetry of the "othervalues" field; I
would probably prefer to store all values in a dict of lists.

> but maybe it should just be applied if no further action occurs
> http://aspn.activestate.com/ASPN/Mail/Message/1824616."
>
> Why this patch was not been accepted since 2003?

Well, I suppose it's a lot better than no patch at all, so it should be
applied.

> What can we do to get this patch accepted, so we do not have to
> maintain a boost-copy on our repositories?

You can run the Boost.Python test suite with the patch in place against
trunk, and assure me that all the tests pass.  If you do that, I'll be
inclined to apply it and move it to the release branch.

Thanks for the bump,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


More information about the Cplusplus-sig mailing list