can not the "static const int" be replaced by "static enum" anywhere?
is it necessary that define special initialization syntax for "static const int"?...
Search Result
Collapse
2 results in 0.0040 seconds.
Keywords
Members
Tags
-
How is "static const int" better than "static enum"?
-
static const class members
Hi,
I'm new to programming in C++ (using VC6) and ran into the following
problem: I want to declare and define a class member variable as 'static
const', but something seems to go wrong with the linking.
I specify a class Port the following way:
Port.h:
class __declspec(dlle xport) Port
{ static const int IN_PORT;
//...
...