help-gplusplus
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Why can switch only compare to const values?
From
:
Kevin Peterson
Subject
:
Why can switch only compare to const values?
Date
:
Fri, 22 Mar 2013 14:34:00 +0000
Just curious:
Take a switch-statement like -
switch(myVar)
{
case(label):
...
break;
}
why label should be constant only?
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Why can switch only compare to const values?
,
Kevin Peterson
<=
Re: Why can switch only compare to const values?
,
Nikos Chantziaras
,
2013/03/22
Prev by Date:
Re: Unexplained compilation error.
Next by Date:
Re: Why can switch only compare to const values?
Previous by thread:
Unexplained compilation error.
Next by thread:
Re: Why can switch only compare to const values?
Index(es):
Date
Thread