diff --git a/src/common/file_util.h b/src/common/file_util.h index 57ff8b179..d202cab07 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -175,12 +175,8 @@ public: template size_t ReadArray(T* data, size_t length) { - static_assert(std::is_standard_layout(), - "Given array does not consist of standard layout objects"); -#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) static_assert(std::is_trivially_copyable(), "Given array does not consist of trivially copyable objects"); -#endif if (!IsOpen()) { m_good = false; @@ -196,12 +192,8 @@ public: template size_t WriteArray(const T* data, size_t length) { - static_assert(std::is_standard_layout(), - "Given array does not consist of standard layout objects"); -#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) static_assert(std::is_trivially_copyable(), "Given array does not consist of trivially copyable objects"); -#endif if (!IsOpen()) { m_good = false;