#755 warning about constexpr in array.h

This commit is contained in:
John Wellbelove 2023-09-03 23:50:03 +01:00
parent 01d96609cf
commit a4879c8908

View File

@ -134,7 +134,9 @@ namespace etl
#endif
const_reference at(size_t i) const
{
#if defined(ETL_THROW_EXCEPTIONS)
ETL_ASSERT(i < SIZE, ETL_ERROR(array_out_of_range));
#endif
return _buffer[i];
}