diff options
Diffstat (limited to 'src/codec')
-rw-r--r-- | src/codec/schema.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/codec/schema.h b/src/codec/schema.h index 5021d33..df9f443 100644 --- a/src/codec/schema.h +++ b/src/codec/schema.h @@ -28,6 +28,14 @@ struct Union<Member<V, K>...> {}; template <typename T> struct Array {}; +template <class T> struct is_array { + constexpr static bool value = false; +}; + +template <class T> struct is_array<schema::Array<T>> { + constexpr static bool value = true; +}; + template<typename T, size_t S> struct FixedArray {}; template <typename... T> struct Tuple {}; |