summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/codec/c++/data.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index d13ff47..11f98e5 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -82,7 +82,11 @@ struct native_data_type<schema::Primitive<schema::FloatingPoint, 8>> {
using type = double;
};
-template<typename T, typename Encoding = encode::Native>
+#ifndef FORSTIO_DEFAULT_DATA_ENCODING
+#define FORSTIO_DEFAULT_DATA_ENCODING encode::Native
+#endif
+
+template<typename T, typename Encoding = FORSTIO_DEFAULT_DATA_ENCODING>
class data {
private:
static_assert(always_false<T>, "Type not supported.");