From fd08cbce6fd9ec1a3b0fdeedbcbf667cd0f89ce4 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 7 Jun 2025 15:33:31 +0200 Subject: Added default encoding definition header --- modules/codec/c++/data.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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> { using type = double; }; -template +#ifndef FORSTIO_DEFAULT_DATA_ENCODING +#define FORSTIO_DEFAULT_DATA_ENCODING encode::Native +#endif + +template class data { private: static_assert(always_false, "Type not supported."); -- cgit v1.2.3