From a26f1711243aca7e49eeab60bb72023a36df5f9b Mon Sep 17 00:00:00 2001 From: mutouyun Date: Thu, 13 Dec 2018 15:40:19 +0800 Subject: [PATCH] max defined in --- include/circ_elem_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/circ_elem_array.h b/include/circ_elem_array.h index 9ab4f59..9606172 100644 --- a/include/circ_elem_array.h +++ b/include/circ_elem_array.h @@ -72,7 +72,7 @@ public: enum : std::size_t { head_size = elem_array_head_size, data_size = DataSize, - elem_max = std::numeric_limits::max() + 1, // default is 255 + 1 + elem_max = (std::numeric_limits::max)() + 1, // default is 255 + 1 elem_size = sizeof(head_t) + DataSize, block_size = elem_size * elem_max };