diff options
Diffstat (limited to 'modules/codec')
-rw-r--r-- | modules/codec/c++/data.hpp | 21 |
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 */ |