summaryrefslogtreecommitdiff
path: root/modules/codec/c++/data.hpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-17 20:00:35 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-17 20:00:35 +0200
commit8da155a34985a67738ef7fa1a07cc29af0574f07 (patch)
treeb8f9efbf9ec2b994e63a4333528b408474bb30ab /modules/codec/c++/data.hpp
parentf00375ec0650dfcb0a2a0e36113010357f4f51c9 (diff)
Data stuff
Diffstat (limited to 'modules/codec/c++/data.hpp')
-rw-r--r--modules/codec/c++/data.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 05bd8e2..8eff115 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -235,6 +235,27 @@ public:
}
};
+/*
+template<typename T, typename N>
+class data<schema::Ref<schema::Primitive<T,N>>, encode::Native, storage::Default {
+public:
+ using Schema = schema::Ref<schema::Primitive<T,N>>;
+private:
+ ref<typename native_data_type<schema::Primitive<T,N>>::type> orig_;
+public:
+ data(ref<typename native_data_type<schema::Primitive<T,N>>::type> orig__):
+ orig_{orig__}
+ {}
+
+ /// @TODO what do we really want to return?
+ data<schema::Primitive<T,N>, encode::Native> operator+(const data<Schema, encode::Native>& rhs) const {
+ data<schema::Primitive<T,N>> prim;
+
+ return prim;
+ }
+};
+*/
+
/**
* Union type for native data classes
*/