Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2744: boost::python does not support enums with duplicated values.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-18 21:10:42
#2744: boost::python does not support enums with duplicated values.
--------------------------------------+-------------------------------------
Reporter: hugo.lima_at_[hidden] | Owner: dave
Type: Patches | Status: assigned
Milestone: Boost 1.39.0 | Component: Python
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: boost python enum
--------------------------------------+-------------------------------------
Comment(by anonymous):
I dont have enough privileges to replace existing patches, maybe if I
create a trac account.
I fixed the original patch, so enums are not integers and the tests do not
fail. Just one issue, when I cast something to a enum, if the enum value
is duplicated, it will ever return the last declared value. so I replaced
the color.red by color.blood in the python test script. But that's not a
problem, because color.red == color.blood and hash(color.red) ==
hash(color.blood).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2744#comment:19> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC