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 };