Tested only std::numeric_limits in MSVC

This commit is contained in:
Steffen Gaisser 2022-05-02 17:22:13 +02:00
parent 54feb77770
commit 3332f68ce7

View File

@ -10,10 +10,8 @@
*/
template <typename T, size_t MAX_SIZE, typename count_t = uint8_t>
class FixedArrayList : public ArrayList<T, count_t> {
#if !defined(_MSC_VER)
static_assert(MAX_SIZE <= std::numeric_limits<count_t>::max(),
"count_t is not large enough to hold MAX_SIZE");
#endif
private:
T data[MAX_SIZE];