diff options
Diffstat (limited to 'Source/Core/Common/LinearDiskCache.h')
| -rw-r--r-- | Source/Core/Common/LinearDiskCache.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/Core/Common/LinearDiskCache.h b/Source/Core/Common/LinearDiskCache.h index 4268d2b516..81c146ec9a 100644 --- a/Source/Core/Common/LinearDiskCache.h +++ b/Source/Core/Common/LinearDiskCache.h @@ -56,15 +56,9 @@ public: { using std::ios_base; -// Since we're reading/writing directly to the storage of K instances, -// K must be trivially copyable. TODO: Remove #if once GCC 5.0 is a -// minimum requirement. -#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5 - static_assert(std::has_trivial_copy_constructor<K>::value, - "K must be a trivially copyable type"); -#else + // Since we're reading/writing directly to the storage of K instances, + // K must be trivially copyable. static_assert(std::is_trivially_copyable<K>::value, "K must be a trivially copyable type"); -#endif // close any currently opened file Close(); |
