summaryrefslogtreecommitdiff
path: root/src/codec/data.h
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-05-04 00:06:28 +0200
committerClaudius Holeksa <mail@keldu.de>2023-05-04 00:06:28 +0200
commit33eac9dc02024b711124ebf45bfcc9a68d8b1470 (patch)
tree44c7cf2410d60ffd5dcfbb6ed0d3ab8825a57923 /src/codec/data.h
parent2aa2af0007b7e969845642027c635cd3fd9c8aea (diff)
codec: Working on ProtoForst
Diffstat (limited to 'src/codec/data.h')
-rw-r--r--src/codec/data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/codec/data.h b/src/codec/data.h
index 1682ae7..310942c 100644
--- a/src/codec/data.h
+++ b/src/codec/data.h
@@ -58,6 +58,11 @@ struct native_data_type<schema::Primitive<schema::FloatingPoint, 4>> {
using type = float;
};
+template <>
+struct native_data_type<schema::Primitive<schema::FloatingPoint, 8>> {
+ using type = double;
+};
+
template<typename T, typename Encoding = encode::Native>
class data {
private:
@@ -86,4 +91,6 @@ template<typename T, size_t N>
class data<schema::Primitive<T,N>, encode::Native> {
private:
};
+
+
}