[C++-sig] unnamed enum bug
Nicodemus
nicodemus at esss.com.br
Tue Apr 27 02:18:27 CEST 2004
Hi Roman and Niall,
Niall Douglas wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On 26 Apr 2004 at 9:03, Roman Yakovenko wrote:
>
>
>>Why we could not export unnamed enums as constants ?
>>
>
>How do you mean?
>
I guess Roman means to put a constant with the same value in the global
scope, something like this (untested):
{
scope unnamed;
unnamed.attr("CHANNEL_DIRECTION_ENUM_SIZE") = CHANNEL_DIRECTION_ENUM_SIZE;
...
}
I'm not sure if everything just "works", but if it does, I guess that
change is good enough to me. Note that normal enums are exported as
usual. Roman, have you tested this? How does it work?
If everyone agress, I will apply this patch.
Regards,
Nicodemus.
More information about the Cplusplus-sig
mailing list