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

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-02-10 21:47:33


#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
--------------------------------------+-------------------------------------
Changes (by dave):

  * status: new => assigned

Comment:

 ?? The usecase is supporting your enum with multiple names for the same
 value

 The memory footprint of this additional dict will be tiny.

 The problem with the change as proposed is that it ''can'' break user
 code, if users are counting on "values" containing single int values,
 because the person using an enum is not always the same as the person
 exporting it.

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