aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-17 18:18:03 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-17 18:18:03 +0200
commit412d3fb1dca2255b53f5fad83d38b4cb06af2972 (patch)
tree55a574977268374761691c9eaad935a1791385ca
parentecf58f9e8fa791d79aec1c0051ac01e2a1037c6a (diff)
downloadEpisodeBrowser-412d3fb1dca2255b53f5fad83d38b4cb06af2972.tar.gz
Fix HasVersion.
-rw-r--r--c/data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/data.h b/c/data.h
index 51132f6..7e86955 100644
--- a/c/data.h
+++ b/c/data.h
@@ -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