ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.17k stars 388 forks source link

warning about constexpr in array.h #755

Closed MickroC closed 1 year ago

MickroC commented 1 year ago

I get the following warning (etl version 20.38.1):

array.h(137): warning: use of this statement in a constexpr function is a C++14 extension [-Wc++14-extensions]

Backround: I am restricted to C++11 and the warning appears only if ETL_NO_CHECKS is not defined. Since C++11 is severely limited in terms of the content of constexpr functions, I think the expansion of ETL_ASSERT is not allowed in this case.

As far as possible I try to treat warnings like errors. Is it possible to add another check about the C++ version at this point?

jwellbelove commented 1 year ago

Fixed 20.38.2