summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/file_util.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 143f099eb..4c11849ee 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -170,12 +170,8 @@ public:
170 170
171 template <typename T> 171 template <typename T>
172 size_t ReadArray(T* data, size_t length) { 172 size_t ReadArray(T* data, size_t length) {
173 static_assert(std::is_standard_layout<T>(),
174 "Given array does not consist of standard layout objects");
175#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
176 static_assert(std::is_trivially_copyable<T>(), 173 static_assert(std::is_trivially_copyable<T>(),
177 "Given array does not consist of trivially copyable objects"); 174 "Given array does not consist of trivially copyable objects");
178#endif
179 175
180 if (!IsOpen()) { 176 if (!IsOpen()) {
181 m_good = false; 177 m_good = false;
@@ -191,12 +187,8 @@ public:
191 187
192 template <typename T> 188 template <typename T>
193 size_t WriteArray(const T* data, size_t length) { 189 size_t WriteArray(const T* data, size_t length) {
194 static_assert(std::is_standard_layout<T>(),
195 "Given array does not consist of standard layout objects");
196#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
197 static_assert(std::is_trivially_copyable<T>(), 190 static_assert(std::is_trivially_copyable<T>(),
198 "Given array does not consist of trivially copyable objects"); 191 "Given array does not consist of trivially copyable objects");
199#endif
200 192
201 if (!IsOpen()) { 193 if (!IsOpen()) {
202 m_good = false; 194 m_good = false;