[C++-sig] Re: problem with Boost.Python enum with duplicate values
by David Abrahams other posts by this author
Oct 2 2003 8:29PM messages near this date
Re: [C++-sig] problem with Boost.Python enum with duplicate values
|
[C++-sig] Boost.Python and threads
"Niall Douglas" <s_sourceforge@[...].com> writes:
> On 2 Oct 2003 at 11:40, scott snyder wrote:
>
> > Looking at the code in enum.cpp, is see that it keeps the enum items
> > in a map indexed by the value --- so values added later overwrite any
> > added earlier.
> >
> > It's common to use C++ enums to define small integral constants,
> > in addition to using them for things which are actual enumerations. So
> > the case of multiple enum symbols with the same value really should be
> > supported.
>
> I completely agree. Perhaps a reimplementation of enum.cpp Dave?
Something's in order. I'm not very fond of Scott's specific patch,
though (sorry). I'll give it some thought.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
scott snyder
Niall Douglas
David Abrahams
|