summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-28 23:06:49 +0200
committerGitHub <noreply@github.com>2018-04-28 23:06:49 +0200
commit3d9126ba8775398b761ad6246ff4db5f2363149c (patch)
treef2da6baf1db5926d33d7893e0c76f659135fc394 /src
parentMerge pull request #413 from lioncash/dynarmic (diff)
parentfile_util: Remove compiler version checks around is_trivially_copyable() (diff)
downloadyuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.tar
yuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.tar.gz
yuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.tar.bz2
yuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.tar.lz
yuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.tar.xz
yuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.tar.zst
yuzu-3d9126ba8775398b761ad6246ff4db5f2363149c.zip
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:
template <typename T>
size_t ReadArray(T* data, size_t length) {
- static_assert(std::is_standard_layout<T>(),
- "Given array does not consist of standard layout objects");
-#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
static_assert(std::is_trivially_copyable<T>(),
"Given array does not consist of trivially copyable objects");
-#endif
if (!IsOpen()) {
m_good = false;
@@ -191,12 +187,8 @@ public:
template <typename T>
size_t WriteArray(const T* data, size_t length) {
- static_assert(std::is_standard_layout<T>(),
- "Given array does not consist of standard layout objects");
-#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
static_assert(std::is_trivially_copyable<T>(),
"Given array does not consist of trivially copyable objects");
-#endif
if (!IsOpen()) {
m_good = false;