If I want to exclude problems with enums and type redefinition in C++ I can use the code:
struct VertexType
{
enum
{
Vector2 = 1,
Vertor3 = 2,
Vector4 = 3,
};
};
struct Vector2 { ... };
struct Vector3 { ... };
struct Vector3 { ... };
Is there a way to remove the wrapper above enum. I looked at C++0x but didn’t find addiditional inforamtion about solving this problem.
How about
namespace?