From 2778f650bfd8b7ba7825e1cf8a1a28899458649d Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 7 Jan 2024 00:00:50 +0100 Subject: core,codec: Adding dangling changes --- modules/codec/c++/csv.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'modules/codec/c++/csv.h') diff --git a/modules/codec/c++/csv.h b/modules/codec/c++/csv.h index 3727829..f40376f 100644 --- a/modules/codec/c++/csv.h +++ b/modules/codec/c++/csv.h @@ -12,10 +12,10 @@ struct Csv {}; namespace impl { template struct csv_encode { - static_assert(always_false, "Case not supported"); + static_assert(always_false, "Case not supported"); }; -template +template struct csv_encode, FromDecode> { static_assert(Dim == 1, "Only one dimension is allowed."); static_assert(!is_array::value, "Array of an array is not allowed."); @@ -42,13 +42,23 @@ struct csv_encode, FromDecode> { } }; -template<> +template struct csv_encode { using Schema = schema::String; static error_or encode(const data& from, data& to){ - return void_t{}; + return make_error(); + } +}; + +template +struct csv_encode, FromDecode> { + using Schema = schema::Primitive; + + static error_or encode(const data& from, data& to){ + + return make_error(); } }; } -- cgit v1.2.3