diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-06-07 15:33:31 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-06-07 15:33:31 +0200 |
commit | fd08cbce6fd9ec1a3b0fdeedbcbf667cd0f89ce4 (patch) | |
tree | 168a46a132207fb79124868b6a88e2d087f57fa7 | |
parent | 104e9b27ca52b89d88256155820272a8f8dd6110 (diff) |
Added default encoding definition header
-rw-r--r-- | modules/codec/c++/data.hpp | 6 |
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."); |