On Thu, 24 May 2007 06:07:02 -0700, Joachim
<Jo*****@discussions.microsoft.comwrote:
>How can a member of an enum type, like
typedef enum tagMPEG4Mode
{
None = 0,
Divx = 1,
Microsoft = 2,
} MPEG4Mode;
collide with a namespace, like Microsoft ?
In C++, enum members aren't scoped to the enum but rather to the enclosing
namespace.
>These are both third party
libraries - how can I solve the name collission?
You could rename the enumerator or enclose the enum in a namespace for the
library. Either way, you may have to recompile the library, but the odds
are much worse for the latter.
--
Doug Harrison
Visual C++ MVP