[Boost-bugs] [Boost C++ Libraries] #2744: boost::python does not support enums with duplicated values.

Subject: [Boost-bugs] [Boost C++ Libraries] #2744: boost::python does not support enums with duplicated values.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-10 16:59:08


#2744: boost::python does not support enums with duplicated values.
-------------------------------------+--------------------------------------
 Reporter: hugo.lima_at_[hidden] | Owner: dave
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: Python
  Version: Boost Development Trunk | Severity: Problem
 Keywords: boost python enum |
-------------------------------------+--------------------------------------
 boost::python does not support enums with duplicated values.

 The proposed patch do the following:

 If the enum does not have duplicated values, all remains the same (the
 "values" attribute is a dict of value=>enum_type).
 If it has duplicated values, the duplicated values point to a tuple of
 enum_types in the values attr dict.

 Remarks:
  - Maybe I should use lists instead of tuples to avoid the list <=> tuple
 conversion
  - I did not use tuples for all entries in the values attribute to keep
 the source compatibility.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2744>
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