diff options
Diffstat (limited to 'c/data.h')
-rw-r--r-- | c/data.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,11 +58,11 @@ struct CfgA template <typename T> constexpr inline unsigned char Version = T{}.version; -template <typename T, typename = void> +template <typename T, typename = int> constexpr inline bool HasVersion = false; template <typename T> -constexpr inline bool HasVersion<T, std::void_t<typename T::version>> = true; +constexpr inline bool HasVersion<T, decltype((void) T::version, 0)> = true; /* FileView objects manage a memory-mapped file. The view buffer may * be treated as an array of a given type T. Note that reading and |