summaryrefslogtreecommitdiff
path: root/modules/codec/c++/schema.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-04-11 18:24:47 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-04-11 18:24:47 +0200
commit204aeb03daf43e73546077c8f72538ad3b6ac75b (patch)
tree91525622dd7dddb9586ad176b298b579cbdf6a16 /modules/codec/c++/schema.hpp
parent5969e94c88f7db8cfe017190a27faf86b42b1a5f (diff)
codec, remote-opencl: Trying out opencl and ammending parts of codec for
it
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;
};