summaryrefslogtreecommitdiff
path: root/src/codec/schema.h
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-06-14 12:51:20 +0200
committerClaudius Holeksa <mail@keldu.de>2023-06-14 12:51:20 +0200
commit7779119ea724987128ebd4bb4c0433dee8b5f877 (patch)
treefa982e320eb93bfd5fb7ff6440739b77273359f8 /src/codec/schema.h
parent85398a9410a3ab36786c1e436986309ee6163f2f (diff)
c++: Let test run in test-case derivation and ammend changed schema
dimension changes
Diffstat (limited to 'src/codec/schema.h')
-rw-r--r--src/codec/schema.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codec/schema.h b/src/codec/schema.h
index df9f443..2a548df 100644
--- a/src/codec/schema.h
+++ b/src/codec/schema.h
@@ -26,17 +26,17 @@ template <typename... T> struct Union {
template <typename... V, string_literal... K>
struct Union<Member<V, K>...> {};
-template <typename T> struct Array {};
+template <typename T, size_t Dim = 1> struct Array {};
template <class T> struct is_array {
constexpr static bool value = false;
};
-template <class T> struct is_array<schema::Array<T>> {
+template <class T, size_t Dim> struct is_array<schema::Array<T,Dim>> {
constexpr static bool value = true;
};
-template<typename T, size_t S> struct FixedArray {};
+template<typename T, size_t... S> struct FixedArray {};
template <typename... T> struct Tuple {};