namespace Hell
{
static const Flag0 = 0x1;
static const Flag1 = 0x2;
// or if it is in a class, I use
class Heaven
{
enum Flags
{
Flag0 = 0x1,
Flag2 = 0x2,
};
}
}
he uses it as follows:
#define Flag0 0x1
#define Flag1 0x2
// even more like
class CoolBuffer
{
#define CB_NOTSOCOOL 1
#define CB_NOTEVENCOOL 2
int Flags;
};
//... etc
... and he ignours all the C++ fancy capabilities that I love.
I tried convincing him, but since he stands for the fact that "Microsoft uses macros, then it is correct! Are we better than microsoft?" I couldn't change any bit of his mind.
So guys, plz give me a hand on this. or maybe correct me if I am wrong.
Thanks in advanced
That Was Teh Evil ^^
[edited by - teh evil on March 9, 2004 2:49:18 AM]