Use enum for class constant

This commit is contained in:
Behdad Esfahbod 2019-01-20 19:51:08 -05:00
parent cf7edf52c3
commit dd7c628ed1
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ struct stack_t
unsigned int get_count () const { return count; } unsigned int get_count () const { return count; }
bool is_empty () const { return count == 0; } bool is_empty () const { return count == 0; }
static const unsigned int kSizeLimit = LIMIT; enum { kSizeLimit = LIMIT };
protected: protected:
bool error; bool error;