Use enum for class constant
This commit is contained in:
parent
6d042a18e7
commit
380c3cffb9
|
@ -477,7 +477,7 @@ struct stack_t
|
|||
unsigned int get_count () const { return count; }
|
||||
bool is_empty () const { return count == 0; }
|
||||
|
||||
static const unsigned int kSizeLimit = LIMIT;
|
||||
enum { kSizeLimit = LIMIT };
|
||||
|
||||
protected:
|
||||
bool error;
|
||||
|
|
Loading…
Reference in New Issue