Skip to content

Commit

Permalink
const_reference at(size_t i) const is only constexpr from C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Sep 4, 2023
1 parent ec8dea9 commit d517847
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/etl/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,10 @@ namespace etl
///\param i The index of the element to access.
//*************************************************************************
ETL_NODISCARD
#if defined(ETL_THROW_EXCEPTIONS)
ETL_CONSTEXPR14
#else
ETL_CONSTEXPR
#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];
}
Expand Down

0 comments on commit d517847

Please sign in to comment.