ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> c++-sig
c++-sig
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved