提交 dd7c628e 编写于 作者: B Behdad Esfahbod

Use enum for class constant

上级 cf7edf52
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册