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 19:59:02
#2744: boost::python does not support enums with duplicated values.
--------------------------------------+-------------------------------------
Reporter: hugo.lima_at_[hidden] | Owner: dave
Type: Patches | Status: new
Milestone: Boost 1.39.0 | Component: Python
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: boost python enum
--------------------------------------+-------------------------------------
Comment(by hugo.lima_at_[hidden]):
Yeah, but I did not want to change the API or the current behaviour of the
current boost::python based bindings with this patch. IMHO, values
attribute should be a dict that maps name->value. But this will change the
current API of all enums generated by boost python.
Adding a new "name" attribute without any real usecase may only increase
the memory footprint with this dict. So, not changing the API and fixing a
bug is good enough for now :-). What you think about?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2744#comment:4> 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