Re: [C++-sig] problem with Boost.Python enum with duplicate values
by Niall Douglas other posts by this author
Oct 2 2003 12:08PM messages near this date
[C++-sig] problem with Boost.Python enum with duplicate values
|
[C++-sig] Sharing C++ data from different modules
-----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-----
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Scott Snyder
Niall Douglas
|