G
Guest
I read in "Thinking in C++" this code works:
I read in "Thinking in C++" this code works:
---------
class A
{
static const int b = 1;
};
WW said:No. VC6 is non-standard in this matter. The usual fix is the enum-as-const
"idiom". Just do it like this:
class A
{
enum { b = 1; };
enum { b = 1 };
Victor said:enum { b = 1 };
Alexander said:Victor Bazarov wrote:
[...]enum { b = 1 };
"The actual eyeballs, lying within an ea^H^H^H^H^HBazarov's skull, are
huge by our standards, taking up more room than the brain itself!"
WW said:[...]
I assume Alexander meant [...]
Victor said:WW said:[...]
I assume Alexander meant [...]
He didn't mean anything. He can't mean anything.
He has no device with which to mean.
I assume Alexander meant you have eagle eyes. And nothing about Victor's
brain.
Alexander said:WW wrote:
[...]
I assume Alexander meant you have eagle eyes. And nothing about Victor's
brain.
Let me put it this way. Judging from Bazarov's "subdue" c.l.c++-policing
activity of lately, his medical treatment looks really promising. To me,
it seems like he'll reach the level of NeilB really soon. Amen. Default,
be ready (never mind your days are coming too).
http://groups.google.com/[email protected]
I read in "Thinking in C++" this code works:
---------
class A
{
static const int b = 1;
};
I do something wrong?
I use VC++6 and it returns:
WW said:Victor said:WW said:[...]
I assume Alexander meant [...]
He didn't mean anything. He can't mean anything.
He has no device with which to mean.
I see. He has no device with which to mean. So he cannot be mean. ;-)
Victor said:Nah. It's actually simpler. He cannot be. Unless you let him,
by replying to his nonsense. Two more times and you (and others
feeding that idiot troll) will probably join him in my killfile.
You don't have to care about that. I'm just pondering.
tension down. Well, remind me time to time to not seek for a carrier
in marriage concunciling. :-(
Victor said:WW said:Victor said:[...]
I assume Alexander meant [...]
He didn't mean anything. He can't mean anything.
He has no device with which to mean.
I see. He has no device with which to mean. So he cannot be mean. ;-)
Nah. It's actually simpler. He cannot be. Unless you let him,
by replying to his nonsense. Two more times and you (and others
feeding that idiot troll) will probably join him in my killfile.
You don't have to care about that. I'm just pondering.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.