summaryrefslogtreecommitdiff
path: root/modules/codec/c++/schema.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/schema.hpp')
-rw-r--r--modules/codec/c++/schema.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/codec/c++/schema.hpp b/modules/codec/c++/schema.hpp
index 3d20c10..5a2f440 100644
--- a/modules/codec/c++/schema.hpp
+++ b/modules/codec/c++/schema.hpp
@@ -5,6 +5,10 @@
#include <forstio/string_literal.hpp>
namespace saw {
+template <class T> struct is_primitive {
+ constexpr static bool value = false;
+};
+
namespace schema {
// NOLINTBEGIN
template <typename T, string_literal Literal> struct Member {
@@ -262,10 +266,6 @@ template <class T, size_t Dim> struct is_array<schema::Array<T,Dim>> {
constexpr static bool value = true;
};
-template <class T> struct is_primitive {
- constexpr static bool value = false;
-};
-
template <typename T, size_t N> struct is_primitive<schema::Primitive<T,N>> {
constexpr static bool value = true;
};