1
0
forked from fsfw/fsfw

MSVC FSFW almost compiling

This commit is contained in:
2021-03-07 01:35:55 +01:00
parent cb514e7493
commit e7cd7c8dc3
10 changed files with 38 additions and 24 deletions

View File

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