ARMC5 <array>: remove not-working constexpr

pull/11076/head
Kevin Bracey 2019-07-19 17:17:37 +03:00
parent fbf89272cc
commit 9f258c4798
1 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,8 @@ struct array {
using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
// [array.size]
constexpr size_type size() const noexcept
// ARMC5 complains "a constexpr member function is only permitted in a literal class type"
/*constexpr*/ size_type size() const noexcept
{
return _Size;
}
@ -101,11 +102,11 @@ struct array {
{
return _C_elem[_Size - 1];
}
constexpr bool empty() const noexcept
/*constexpr*/ bool empty() const noexcept
{
return false;
}
constexpr size_type max_size() const noexcept
/*constexpr*/ size_type max_size() const noexcept
{
return _Size;
}