[C++-sig] problem with Boost.Python enum with duplicate values

Niall Douglas s_sourceforge at nedprod.com
Thu Oct 2 21:03:10 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Cheers,
Niall





-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2

iQA/AwUBP3x2bsEcvDLFGKbPEQKvjgCbB6pMacz712hrRpwhiWGDVWxx37kAnAzL
j/rIvh0AA3qcHsneh8/RZw7U
=o1/t
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list