max defined in <windows.h>

This commit is contained in:
mutouyun 2018-12-13 15:40:19 +08:00
parent 7a7426a8b8
commit a26f171124

View File

@ -72,7 +72,7 @@ public:
enum : std::size_t {
head_size = elem_array_head_size<BaseIntSize>,
data_size = DataSize,
elem_max = std::numeric_limits<u1_t>::max() + 1, // default is 255 + 1
elem_max = (std::numeric_limits<u1_t>::max)() + 1, // default is 255 + 1
elem_size = sizeof(head_t) + DataSize,
block_size = elem_size * elem_max
};