diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-17 18:18:03 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-17 18:18:03 +0200 |
commit | 412d3fb1dca2255b53f5fad83d38b4cb06af2972 (patch) | |
tree | 55a574977268374761691c9eaad935a1791385ca /c/data.h | |
parent | ecf58f9e8fa791d79aec1c0051ac01e2a1037c6a (diff) | |
download | EpisodeBrowser-412d3fb1dca2255b53f5fad83d38b4cb06af2972.tar.gz |
Fix HasVersion.
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 |