ARMC5 <array>: permit zero size

pull/11076/head
Kevin Bracey 2019-07-19 17:17:07 +03:00
parent 77786926bc
commit fbf89272cc
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ struct reverse_iterator;
template <typename _TypeT, size_t _Size>
struct array {
// [array.overview]
_TypeT _C_elem[_Size];
_TypeT _C_elem[_Size != 0 ? _Size : 1];
using value_type = _TypeT;
using size_type = size_t;